Google Forms Submission Redirect URL Help

[SOLVED]
I was trying to create a simple webflow form and submit redirect to another webflow page. But I got hit with this error.

CORS No ‘Access-Control-Allow-Origin’

I couldn’t fix it even after reading all the topics on the matter.
I then saw this video about using Google Form and styling with Webflow.

But then I still had the redirection problem. I then followed the link discussed in this thread

https://productforums.google.com/forum/#!topic/docs/90dJqCYl_fU

A user called Theresa posted this code.

    <script type="text/javascript">var submitted=false;</script>
    <iframe name="hidden_iframe" id="hidden_iframe" style="display:none;"     
    onload="if(submitted) {window.location='whateveryourredirectis.html';}"></iframe>
          <form action="YOUR-EMBEDDED-GOOGLE-SPREADSHEET-LINK" method="post" target="hidden_iframe" 
    onsubmit="submitted=true;">

After adding the code to the Head section of the Webflow Page which has the form, I was able to submit the (Google) form and redirect to the desired Webflow page.

I wish there was simpler explanation and solution to the CORS issue.

2 Likes