Prompt to save form data

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

Prompt to save form data

kushp
While filling the Orboen form, if the changes are unsaved. I've attached the screenshot of this dialog box. 

I have a specific requirement to remove this dialog completely. In my system, when the user navigates to another tab, the form data is saved using Javascript. So I do not need this dialog box. 

How to achieve this?

--
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].

leave site.png (18K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Prompt to save form data

Alessandro  Vernet
Administrator
Hi Kush,

Right now this feature can't be disabled. For now, I've added the Request
for Enhancement linked below to track this.

https://github.com/orbeon/orbeon-forms/issues/3584

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: Prompt to save form data

kushp
Hi Alex,

Regarding the popup to leave the site, can the underlying code be removed completely from the Orbeon war and then build the war file again? If so, can you please suggest where the code is located? 

If it cannot be removed completely, a hacky way would do too.

Thanks,
kp

On Friday, May 11, 2018 at 3:30:16 AM UTC+5:30, Alessandro Vernet wrote:
Hi Kush,

Right now this feature can't be disabled. For now, I've added the Request
for Enhancement linked below to track this.

<a href="https://github.com/orbeon/orbeon-forms/issues/3584" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Forbeon%2Forbeon-forms%2Fissues%2F3584\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGrJIPgdNb4QEIBTYdyp4t75cWgKA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Forbeon%2Forbeon-forms%2Fissues%2F3584\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGrJIPgdNb4QEIBTYdyp4t75cWgKA&#39;;return true;">https://github.com/orbeon/orbeon-forms/issues/3584

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: <a href="http://discuss.orbeon.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;">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].
Reply | Threaded
Open this post in threaded view
|

Re: Prompt to save form data

Alessandro  Vernet
Administrator
Hi Kush,

In 2017.2, that code was in `check-dirty-script.xhtml`. But I can't
encourage or help much with custom changes to the product (if you need more
help on this, Dev Support is the way to do, but you already know about
that!). This being said, that change shouldn't be too hard to do; good luck
;).

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: Prompt to save form data

kushp
Hi Alex,

I was able to find the code in `check-dirty-script.xhtml` in 2017.2. And it is very easy to customize it.

However, I was not able to find this file in the master branch. I believe this save prompt might be configured in a different file in the master branch. Which file is it? Also, can you please provide steps to build a WAR out of the customized project? 

Thanks,
Kush

On Thursday, May 17, 2018 at 4:07:23 AM UTC+5:30, Alessandro Vernet wrote:
Hi Kush,

In 2017.2, that code was in `check-dirty-script.xhtml`. But I can't
encourage or help much with custom changes to the product (if you need more
help on this, Dev Support is the way to do, but you already know about
that!). This being said, that change shouldn't be too hard to do; good luck
;).

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: <a href="http://discuss.orbeon.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;">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].
Reply | Threaded
Open this post in threaded view
|

Re: Prompt to save form data

Alessandro  Vernet
Administrator
Hi Kush,

Correct: since the 2017.2 release, this code has been improved and rewritten
in Scala. It is now in `FormRunnerPrivateAPI.scala`. We have some
documentation on how to build Orbeon Forms on:

https://doc.orbeon.com/contributors/building-orbeon-forms.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
Reply | Threaded
Open this post in threaded view
|

Re: Prompt to save form data

Erik Bruchez
Administrator
We have now implemented a new property to disable the warning for Orbeon
Forms 2018.2:

   
https://doc.orbeon.com/configuration/properties/form-runner/form-runner-detail-page#warning-the-user-when-data-is-unsafe

-Erik

--
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].