Skip to main content

Redirect from Google form

Comments

5 comments

  • KC George

    Hi Giuseppe,

    If the redirect fails, the JavaScript redirect code likely requires some adjusting or fine tuning. Helping with JS code is outside the purview of the support we offer. 

    Only users who are logged into Google are permitted to submit the form if you enable the option "REQUIRES SIGN IN Limit to 1 response" in your Google Form's Settings - Responses section. If you do not want Google to have your users sign in, turn off this option.

     

    0
  • Giuseppe Boinega

    Hello George,

    Thanks for replying i confirm you that now the Google form is working correctly without the obligation to sign-in.

    About the code, is it possible to find a way to talk with one of your engineers? and complete the job as gig or something similar?
    In the alternative, do you know someone in your community with who I can get in touch with and ask for help? 

    0
  • Ariel H.

    Hi Giuseppe,

    Thank you for waiting.

    We were able to get the script to work with some small changes, as shown on this screencast.
    https://youtu.be/AomL0TwGSYo

    This is the actual page where we tested it.
    https://www.arielh.server001.xyz/en/google-form

    Here is the modified script:

    <iframe id="redirect" src="https://docs.google.com/forms/d/e/1FAIpQLSeBTbYmZZ1HL97S8jr8CvachWTlEDmbTLn95UKRPaX36BVi0g/viewform?embedded=true" width="800" height="1500" frameborder="0" marginheight="0" marginwidth="0">Loading…

    </iframe>

    <script type="text/javascript">
    var load = 0;

    document.getElementById('redirect').onload = function(){
        /*Execute on every reload on iFrame*/
        load++;
        if(load > 2){
            /*Second reload is a submit*/
            document.location = "https://www.aspnote.com/thank-you-page";
        }
    }
    </script>

    Please follow the steps in the above screencast to embed it into your page.

    Please try it at your end and let us know how it goes.

    Best regards,
    Ariel H.

    0
  • Giuseppe Boinega

    Hello Ariel,

    I checked the video you uploaded on Youtube and did a few tests, the code is working :)

    Thank you for the support!

    0
  • Ariel H.

    Hi Giuseppe,

    Thank you for the update. 

    We are glad to hear that we were able to help you resolve this issue.

    Kind regards,
    Ariel H.

    0

Please sign in to leave a comment.