I accidentally hit the back button on my phone, all entries lost

  • Profile Image
    Asked on February 01, 2012 at 08:19 AM

    Is there a way to put a pop up on the form when someone hits back that basically says "Are you sure, all data input will be lost"

    When I hit forward to get back to the form, I had to start over.



  • Profile Image
    Answered on February 01, 2012 at 12:20 PM

    Is the form embedded on a webpage?

    You could probably add some javascript to issue a warning if a user navigates away but the form would need to be embedded on a webpage. 

    I would have to see where the form is embedded to work is this code is ideal but something as simple as http://pastie.org/3296947 could work.