Forum OpenACS Development: Re: Javascript in ad_form

Collapse
2: Re: Javascript in ad_form (response to 1)
Posted by Michael Aram on
Hello Brad,

first, you have to suppress the standard submit button by setting the switch has_submit to 1 (!).

then you can insert a button widget like this:

{mysubmit:text(submit)
{mylabel "mylabel"}
{html {onclick "alert('yeah');"}}
}