How can I show a thank you message after a success form submission without any redirect?

  • Profile Image
    firelightcd
    Asked on November 17, 2017 at 02:54 PM

    Once the form is validated and submitted I would like to hide the form and show a thank you message in the same place without any redirects.  My form is in a custom modal and it would be ideal for the form to disappear and the message appear instead of taking the user to a new URL or reloading the page.

  • Profile Image
    Jim_R
    Answered on November 17, 2017 at 03:10 PM

    Go to your FORM BUILDER and navigate to SETTINGS > THANK YOU PAGE > then select SHOW A THANK YOU PAGE.

    Related guide: Setting-up-the-Thank-You-Page 

  • Profile Image
    firelightcd
    Answered on November 17, 2017 at 04:15 PM

    That setting is redirecting me to the thank you page.  I forgot to mention I'm using the source code version, not JS or iframe.

  • Profile Image
    Kevin_G
    Answered on November 17, 2017 at 05:11 PM

    There are methods to prevent the page to be reloaded when the form is submitted; however, some AJAX code is required to have the form submitted after the default submit event has been stopped, unfortunately, this seems to require some access to the POST URL something that will not be possible so you may either switch to the thank you page or custom URL, but does not seem to be possible to achieve this at least using the source code. 

    But if you use our API then it's possible since you will do the insert function with your custom code and you will have more control over it: http://api.jotform.com/docs/