The Toolkit for Online Communities
18817 Community Members, 0 members online, 1738 visitors today
Log In Register
OpenACS Home : Forums : OpenACS Development : ad_form buttoms : One Message

Forum OpenACS Development: Response to ad_form buttoms

Posted by Stan Kaufman on
If you include one or more "submit" widgets in the form, the template will use it/them instead of the defaults. So, put something like this in the -form block of ad_form:

     {label "Save"}
     {value "Save"}

/packages/acs-templating/resources/forms/standard.adp tests whether there is a submit in your form (note if @form_properties.has_submit@ near the end) and omits the defaults if there it finds a submit.

You can also modify standard.adp to put in your own defaults as you prefer.