Forum OpenACS Q&A: Re: Did ad_form functionality change?

Collapse
Posted by Jeff Wang on
Reading the new api-doc... ad_form did indeed change in functionality. In 4.6, you could keep extending action sections (on_submit,after_submit,new_data) but in 5.0 once you create an action_section, and you cannot extend the form any further.

It seems like this is a major drawback because there are times that you'd want to create a database driven form in which you'd extend the action sections incrementally.

-jeff

Collapse
Posted by Dave Bauer on
You can extend the action sections like this:

set on_submit { code here }

append on_submit { more code }

ad_form -extend -on_submit $on_submit

Just build up the code block dynamically.