Home
The Toolkit for Online Communities
17516 Community Members, 0 members online, 2156 visitors today
Log In Register
OpenACS Home : Forums : OpenACS Q&A : edit-display mode with ad_form : One Message

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