How to disable auto scroll to top after pushing submit button?

  • Profile Image
    sto_metallik
    Asked on March 12, 2017 at 01:21 PM

    Every time I click on submit button of my form page scrolls to top of the page automatically. That's not what I wanted. How to disable that issue?

  • Profile Image
    Mike
    Answered on March 12, 2017 at 04:38 PM

    Please try with added ?nojump parameter to see if that helps.

    <script type="text/javascript" src="https://form.jotformeu.com/jsform/70684289154364?nojump"></script>

    Thank you.

  • Profile Image
    sto_metallik
    Answered on March 12, 2017 at 05:44 PM

    I use lightbox window for my form. Here is the code:

    <script src="https://form.jotformeu.com/static/feedback2.js" type="text/javascript"> var JFL_70701996701357 = new JotformFeedback({ formId: '70701996701357', base: 'https://form.jotformeu.com/', windowTitle: 'Заявка на кузовной ремонт', background: '#FFFFFF', fontColor: '#FFFFFF', type: '1', height: 500, width: 350, openOnLoad: false }); </script>

    Where I need to paste ?nojump ???

  • Profile Image
    Mike
    Answered on March 12, 2017 at 07:36 PM

    Unfortunately, the nojump option is not designed for lightbox forms. You may consider the following options:

    1) Changing feedback2.js to feedback.js. It will use another script to generate the lightbox.

    <script src="https://form.jotformeu.com/static/feedback.js" type="text/javascript"> var JFL_70701996701357 = new JotformFeedback({ formId: '70701996701357', base: 'https://form.jotformeu.com/', windowTitle: 'Заявка на кузовной ремонт', background: '#FFFFFF', fontColor: '#FFFFFF', type: '1', height: 500, width: 350, openOnLoad: false }); </script>

    2) Using a Thank You Page Redirect.

    Setting Up the Thank You Page

    3) Using some 3rd party lightbox script to load the form.

  • Profile Image
    sto_metallik
    Answered on March 13, 2017 at 05:30 AM

    It's so sad that I have to find other ways to solve my issue (( I thought you service is absolutly universal ((

    I tried feedback.js and it just destroyed page design because of conflicts with another scripts on my page ((

    I think that autoscroll should have to be disabled by default at JotForm at all.

  • Profile Image
    ashwin_d
    Answered on March 13, 2017 at 08:06 AM

    Hello,

    I did check your webpage but could not locate lightbox form embedded anywhere. It seems you have only embedded your form with script embed code. 

    I would suggest you to please let us know where you have embedded your from in lightbox and we will wait for your response.

    Thank you!