How does one use the xforms-ready event in a form edit mode?

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

How does one use the xforms-ready event in a form edit mode?

spanithi
Hello Team,

Could you please provide some help/inputs on how does one use the xforms-ready event in a form edit mode?

Thanks,
Satish

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: How does one use the xforms-ready event in a form edit mode?

Alessandro  Vernet
Administrator
Hi Satish,

Is this for a form you created with Form Builder, or are you writing XForms
by hand? What would you like to do in that `xforms-ready` event handler?
Typically, you would add, inside the model for your form, something along
those lines: `<xf:action event="xforms-ready"> [whatever you want to do]
</xf:action>`.

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: How does one use the xforms-ready event in a form edit mode?

spanithi
In reply to this post by spanithi

Hello Alex, Thanks for your response. The form is created in form builder. I want to display an alert/popup message when user tries to open an saved/submitted form in edit mode

Thanks,Satish 

On Tuesday, December 5, 2017 at 6:08:34 PM UTC+5:30, Satish Panithi wrote:
Hello Team,

Could you please provide some help/inputs on how does one use the xforms-ready event in a form edit mode?

Thanks,
Satish

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: How does one use the xforms-ready event in a form edit mode?

Alessandro  Vernet
Administrator
Hi Satish,

Got it Satish, then I would recommend you use a custom model for this, and
put your event handler in that model. This way you won't have to even edit
the source of the form, can have that same logic apply to multiple forms, if
needed. You'll let me know if this works for you.

https://doc.orbeon.com/form-runner/advanced/custom.html

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet