Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Someone asked me about setting up a way to inactivate a form if it is left open for too long.  As of FEB 8.6.3 there There is no feature that can be turned on or configured, however you can build something like this into your form using javaScript.  I have created this example using version 8.6.3, if you have a lower version then you will not be able to import it.  All the code included in the example has also been provided below so that you could re-build it or implement it in your own application.

Please note that there are several different ways that you can modify this sample to provide a different end user experience (i.e. redirect to other website, etc).  I have not covered all the scenarios and am simply providing the high-level theory behind implementing this kind of solution.  There are many other ways to do something like this but this one leverages the functions available within FEB and will work within a server where secureJS is either true or false.ForcedFormTimeout.nitro_s 


Description

This form simulates a forced time-out.  If the form sits inactive for a specified duration then you can for the form to close or redirect to a different page.  This works by using the javaScript setTimeout and clearTimeout functions.

...