Forum OpenACS Development: ad_form buttoms

Collapse
Posted by Tomas Massera on
Hi all,

Does any one know how to change the buttom's name from the form with
ad_form?
I tried the switch that Lars commented in the forum
  -buttoms {{ "OK" ok} }

but that did not work

Thanks
Tomas

Collapse
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:

  {action:text(submit)
     {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.