How to have the thank you page jump the viewer back to the top of the page?

  • Profile Image
    Lizlinford
    Asked on July 21, 2016 at 10:11 AM

    Hello,

    I've embedded a jotform on my website. When I hit the "submit" button, I'm at the bottom of the page so when the thank you page appears, all I can see is a blank screen (white) until I scroll up toward the top of the page where I can see the thank you message. 

    Is there a way to have the thank you page jump the viewer back to the top of the page?

    Thank you,

    Liz

  • Profile Image
    Kiran
    Answered on July 21, 2016 at 11:40 AM

    It looks like that you are using Wix service for your website and the form is embedded using direct URL. Could you try embedding the form using the following iframe embed code and see if that works?

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

    Please get back to us if the issue still persists. We will be happy to assist you further. 

  • Profile Image
    Lizlinford
    Answered on July 21, 2016 at 01:28 PM

    Hi Kiran,

    Thank you for getting back to me. I embedded the form using the above code and I'm still experiencing the same issue.

    Let me know if there is anything else I can try.

    Thank you,

    Liz

  • Profile Image
    Kiran
    Answered on July 21, 2016 at 02:29 PM

    It seems that the issue is happening due to the frame in wix builder where we embed the form. The height of the frame is not resetting to the height of the form after submitting the form. When we submit the form using direct link, you can see that the height is adjusted automatically to display the Thank you page. 

    Since the Wix frame is not resizing automatically, the thank you page is not displaying as required. Unfortunately, it is not possible to resize the wix frame automatically. However, you may consider displaying the form in two pages by using page breaks so that the height of the frame can be reduced.

    https://www.jotform.com/help/119-How-to-Create-Multi-Page-Forms

     

    Let us know if that helps.

  • Profile Image
    Lizlinford
    Answered on July 21, 2016 at 04:06 PM

    I will try that. Thank you!