Keep form visible after submitting

  • chiragvora123
    Asked on July 3, 2014 at 3:31 PM

    I used custom url but in such manner that, it comes down to that url only but below the survey where my graph is there.

    Now what is happening the survey goes off as soon as form submissions is completed which looks really awkward. how to fix it?

  • Mike_T Jotform Support
    Replied on July 3, 2014 at 4:39 PM

    Please try a '?nojump' embedding option to see if that works:

    http://www.jotform.com/answers/399340

    Let us know how it is going.

  • chiragvora123
    Replied on July 4, 2014 at 12:32 AM

    I used that, but the problem is it is working perfect in Google Chrome. But not in Mozilla Firefox & Internet Explorer

  • chiragvora123
    Replied on July 4, 2014 at 1:23 AM

    Even I added i frame code to my website

    <iframe id="JotFormIFrame" onDISABLEDload="window.parent.scrollTo(0,0)" allowtransparency="true" src="//form.jotform.me/form/41731807262452?nojump" frameborder="0" style="width:100%; height:648px; border:none;" scrolling="no"></iframe>
    <script type="text/javascript">window.handleIFrameMessage = function(e) {var args = e.data.split(":");var iframe = document.getElementById("JotFormIFrame");if (!iframe)return;switch (args[0]) {case "scrollIntoView":iframe.scrollIntoView();break;case "setHeight":iframe.style.height = args[1] + "px";break;}};if (window.addEventListener) {window.addEventListener("message", handleIFrameMessage, false);} else if (window.attachEvent) {window.attachEvent("onmessage", handleIFrameMessage);}</script>

     

    But still it isn't working in Mozilla Firefox & Internet Explorer

     

  • chiragvora123
    Replied on July 4, 2014 at 2:27 AM

    Now its even not working in Google Chrome also.

  • chiragvora123
    Replied on July 4, 2014 at 2:36 AM

    Also plz. solve the visibility issue

  • Ashwin JotForm Support
    Replied on July 4, 2014 at 6:15 AM

    Hello chiragvora123,

    I would suggest you to embed your form using the following iFrame code and see if that solves your problem:

    <iframe id="JotFormIFrame" allowtransparency="true" src="//form.jotform.me/form/41731807262452?nojump" frameborder="0" style="width:100%; height:648px; border:none;" scrolling="no"></iframe>

    In the embed code you have shared above, I have removed the <script> code and also the function "onDISABLEDload="window.parent.scrollTo(0,0)" ".

    Please use the above code which i have shared and get back to us if the issue persists.

     

    Thank you!

  • chiragvora123
    Replied on July 4, 2014 at 6:22 AM

    Yes. this works but instead of nojump can it jump down? like my main purpose was to show graph below.

  • Ashwin JotForm Support
    Replied on July 4, 2014 at 10:27 AM

    Hello chiragvora123,

    I did check your web page where you have embedded your form. Below your form, you have one graph being displayed. 

    Once your form is submitted, do you want your page to scroll down and display the graph instead? Do get back to us and we will see if there is any option available for your requirement.

    Why don't you use ":target" in your web page. Then you can take advantage of our "Custom Thank you URL" feature to redirect your form to to the same page with target to display the graph.

    Hope this helps.

    Do get back to us if you have any questions.

    Thank you!

  • chiragvora123
    Replied on July 5, 2014 at 12:56 AM

    "Once your form is submitted, do you want your page to scroll down and display the graph instead? Do get back to us and we will see if there is any option available for your requirement."

    Yes I want this

  • NeilVicente
    Replied on July 5, 2014 at 1:52 AM

    I am not sure what solution Ashwin has in store for you of if my solution is the same as his, but to me the most convenient workaround is to simply re-create the same page without the form and with the graph in focus, then use that page as the form's Thank You URL.

    In any case, Ashwin will be responding to you as soon as he becomes available.

    Thank you for your patience.

  • chiragvora123
    Replied on July 7, 2014 at 1:55 AM

    @ashwin_d
    Any update over it?