How can I add a warning notification before a user accidentally leaves the form page?

  • Profile Image
    glacier_media
    Asked on October 21, 2019 at 07:05 PM

    I would like to give users a pop-up warning before leaving the form page (in any way other than actually submitting the forms).

    I should say something like "Are you sure you want to leave the page without submitting the form?"

    Please advise.

  • Profile Image
    Jed_C
    Answered on October 21, 2019 at 08:47 PM

    If using the form URL alone, it's currently not possible to have this popup. However, if you embed your form in your website, you can create a script that will show a warning message when the user tries to reload the page or close the browser.

    This would require you downloading the form source https://www.jotform.com/help/104-How-to-get-the-Full-Source-Code-of-your-Form.

    Reference guide: https://forums.asp.net/t/1521439.aspx?

    I hope that helps. Let us know if you have any questions or if you need further assistance.