Forum OpenACS Q&A: Re: edit-display mode with ad_form

Collapse
Posted by xx xx on
Few remarks:
- The main reason it failed was because all fields seem to be obligatory. Submit and the change between display/edit failed silently in my test formtemplate. Making them optional is easy but It took me a long time to understand.
- Furthermore the name of the submit button needs to start with "formbutton:" if you want to use: 'get_action' or 'get_button' (at least in my case).
- As far as I can see '-display_button' is not supported by ad_form. Is this because one should use '-actions' ?