You are viewing limited content. For full access, please sign in.

Question

Question

Feature Request: Warn Users about leaving a page when in an LF Form

asked on March 18, 2015

If you try entering in a reply here on Answers, and leave the page without submitting (or try to refresh the page without submitting) then you get a warning like so: 

 

I however do not get that on Laserfiche Forms. I would like this functionality though as it appears some of our clients have been experiencing situations in which the screen appears to refresh somehow while they are filling in a form. While we cannot tell for sure if this is a Laserfiche issue or a workstation issue, this functionality would be helpful in reducing the opportunity for the form to suddenly blank itself unless the user actually intended to do so. 

5 0

Answer

SELECTED ANSWER
replied on April 15, 2015

Hi there,

Try adding the following script in your form javascript

$(window).bind('beforeunload', function () {
  return "Don't Leave!";
});

 

0 0

Replies

replied on March 18, 2015

Hello Kenneth,

 

Where exactly in Forms are you seeing this issue? Also what Forms version are you using? I am on 9.2.1 and all the pages that allow you to perform any sort of editing, will give you the prompt that you mentioned above, so that you do not accidentally wipe out any changes you intended to save.

 

Regards,

Andrew 

replied on April 15, 2015

But can we get it added to the actually software so its not every time but just when they arent hitting the submit button?

0 0
replied on April 15, 2015

Hi Ken,

We'll consider this and improve it in future version.

0 0
replied on April 15, 2015

is there a proper unbind method we can use for when a user hits submit?

0 0
replied on April 16, 2015

How can I test to see if the current webpage is the review page, like when you submit, it will warn when you try to close the page. Once submitted though I do not want it to warn me. What variable is on the page after the submission that I can test before the bind is run?

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.