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

Collapse
Posted by Lars Pind on
Aldert,

I'm not sure what you're trying to do.

The basic functionality is this:

- The form can be in either 'display' or 'edit' mode.

- You can set the -actions switch to your ad_form (see documentation for template::form::create) to defined the list of buttons available when in display mode.

- On both the request and submission connection, you can use template::form::get_action to find out which button was clicked while in edit mode.

Hope this helps.

/Lars