What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    After Form Submit Bring User Back to Top of Page

    Asked by burnhamrichards on August 03, 2012 at 10:50 AM

    Hello,

    I have a long form and after the user submits the form I would like them to go to the top of the page. I found a solution when you include the direct iframe code but I don't know how to do it when I use the Javascript method.

    How can I do that when my include script looks like this:

    <script type='text/javascript'src='//form.jotform.us/jsform/XXXXXXXXXXX'></script>

    Could you possibly add an optional parameter to that URL To allow for the form to go back to the top after form submission?

    The new script code would look like this:

    <script type='text/javascript'src='//form.jotform.us/jsform/XXXXXXXXXXX?backtotop=true'></script>

    The created iframe code would look something like this:

    <iframe onload="self.scrollTo(0,0)"allowtransparency="true" src="//form.jotform.com/form/XXXXXXXX" frameborder="0" style="width:100%; height:1720px; border:none;" scrolling="no">

  • Profile Image
    JotForm Support

    Answered by NeilVicente on August 03, 2012 at 11:01 AM

    I don't think there is  a need to have the page scroll to top after submission because your form is configured to use http://www.gcswi.com/contact/thank-you/ as its Thank You URL.

    Do you want to use a Thank You message which loads in the same container that holds the form?

  • Profile Image
    JotForm Support

    Answered by NeilVicente on August 03, 2012 at 11:06 AM

    Can you please try this code:

    <script type="text/javascript" src="//form.jotform.us/jsform/XXXXXXXXXXX?nojump"></script>

  • Profile Image

    Answered by riatech on August 13, 2012 at 12:22 AM

    Although there is thank you page, but if the form is long..after submitted, the view will stay at bottom. User have to manually scroll to top to view the Thank you message.

    Thanks

  • Profile Image
    JotForm Support

    Answered by NeilVicente on August 13, 2012 at 09:06 AM

    @riatech

    Can you please open a separate thread for your issue? Include as much details as possible, such as the URL of the webpage where the site is currently embedded.

    We look forward to hearing from you soon!