Forum OpenACS Development: Re: ad_form element link

Collapse
6: Re: ad_form element link (response to 1)
Posted by Dave Bauer on
Right, so i would recommend either 1) a popup form that refreshes the parent window when its done (so the dropdown is updated. refreshing_p should work in ad_form...) or an ajax style form that lets you add the contact, then refreshes the dropdown for assignment with javascript.

Can you be more specific to why refreshing_p is not working for you?

Collapse
7: Re: ad_form element link (response to 6)
Posted by Iuri Sampaio on
When i use refreshing_p in the page bug.tcl

ad_form -name bug -form {
...
{component_id:integer(select)
{label "[bug_tracker::conn Component]"}
{options {[bug_tracker::components_get_options]}}
{mode display}
{html {onchange "document .bug.__refreshing_p,value='1';document.bug.submit()"}}
}

...}

the form gets submitted and it returns broken with the disabled fields fix_for_version, found_in_version, patches and etc.