Event handler from form builder

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Event handler from form builder

Karthi
Hi,

From Orbeon form builder, is it possible to add event handler code for an action button that is added in a form? Right now I am editing the source code to add '<xf:action>'.

Thanks,
Karthi
Reply | Threaded
Open this post in threaded view
|

Re: Event handler from form builder

Alessandro  Vernet
Administrator
Hi Karthi,

Yes, you can do that. And I'd recommend you add that <xf:action> inside the <xf:model>, with an ev:observer="your-button-control". This way you can have more confidence that Form Builder won't "loose" with your custom code.

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet