Forum OpenACS Development: Re: ad_form element link

Collapse
9: Re: ad_form element link (response to 8)
Posted by Iuri Sampaio on
Hi dave,

It works fine on bug-add. An empty ad_form to add bugs.
However, it is broken on bug.tcl, the ad_form to submit actions to amend bugs. it needs deeper debug from myside


Furthermore, i would like to follow your approach and create an ajax pop up with user-new registration ad_form and after it is submitted, it makes the bug-add form to get refreshed. and allow users fill out with updated info.
Would you guide me building such a functionality?

I see the starting point is the link in the bug-add form. 

So far i just wrote an ad_form block with the chunk of code

ad_form -extend -name bug -form {
    {info1:text(inform),optional
        {label "<h1>Partes</h1>"}
        {value "<br><a href='/register/user-new' target='_blank'>Adicionar parte em Contatos</a>"}
    }
}

This works. Barely. it opens a new tab with the user-new form but after adding the new user, it still has to refresh manually.
 
I believe "value" block should be different. it should contain a javascript code. What would it be?
Collapse
10: Re: ad_form element link (response to 9)
Posted by Iuri Sampaio on
Nice!
Do you guys see how to trick links of the openacs.org system under forum input html tags?
Collapse
11: Re: ad_form element link (response to 10)
Posted by Dave Bauer on
Of course, if you use enhanced text or HTML format it will interpret your HTML tags. I changed your post of fixed-width text to see the code.
Collapse
12: Re: ad_form element link (response to 11)
Posted by Iuri Sampaio on
and do you have any hints in the post above?