Announcement

Collapse
No announcement yet.

Force to save or cancel

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Force to save or cancel

    Is there a way in a form to force the user to either save the data or cancel when they try to navigate away from the form. Just like when In SC IDE you don't save the changes, then try going to another section, SC wants you to either save the changes or cancel.

    I want to make sure my users save their changes or cancel the changes, not just lose them.

    Thanks

  • #2
    I have just come across this problem too. I tried using onNavigate but that didn't work. We actually need a beforeLeave event to make this work.
    David Goadby, North Wales.

    Comment


    • #3
      The problem is that you cannot easily intercept the back button of your browser, or type another url. But you can prevent the use of the backbutton by inserting a piece of javascript

      See: http://www.scriptcase.net/forum/foru...let-and-mobile
      Albert Drent
      aducom software netherlands
      scriptcase partner, reseller, support and (turn-key) development
      www.scriptcase.eu / www.scriptcase.nl

      Comment

      Working...
      X