Display warning message while opening a form for editing.

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

Re: Display warning message while opening a form for editing.

spanithi
Alex,

Thank you this worked for me.

I added below code lines under <xf:model> and set the dialog visiblility to "false"

<xf:action event="xforms-ready"  if="((fr:mode() = 'edit') and ((//Status='Submitted') or (//Status='Approved')))">   
               <xxf:show event="DOMActivate" dialog="my-dialog-id"/>      
 </xf:action>

Now the dialog appears only in edit mode and when my form status is either Submitted or Approved

Regards,
Satish


On Tuesday, November 28, 2017 at 11:01:35 AM UTC+5:30, Satish Panithi wrote:
Hello Team,

I am trying to do the below
  • An user opens an form they have previously submitted(saved).
  • While opening the form created above and immediately views a warning dialog "Editing this form will revert the Status to In Progress, are you sure you want to proceed?"
    • Clicks No and views the listing of forms on summary page.
    • Clicks Yes and views the previously saved form to edit.

Can we do this with edit process or do I need to do anything out of the box.


Thanks for your help in advance.


Regards,

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: Display warning message while opening a form for editing.

Alessandro  Vernet
Administrator
Excellent Satish, thanks for the update. And BTW, you don't need that
`event="DOMActivate"` on your `xxf:show`.

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
12