Skip to content

Instantly share code, notes, and snippets.

@wboykinm
Created November 8, 2013 17:02
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save wboykinm/7374155 to your computer and use it in GitHub Desktop.
Save wboykinm/7374155 to your computer and use it in GitHub Desktop.
Google forms redirection
<!--ADD THE FORM RESPONSE ACTION HERE, WITH A REDIRECT-->
<script type="text/javascript">var submitted=false;</script>
<iframe name="hidden_iframe" id="hidden_iframe" style="display:none;" onload="if(submitted) {window.location='http://cdb.io/1be11H7';}"></iframe>
<form action="https://docs.google.com/forms/d/17EeoLaAVeGrLYhOGyvy7-jC9ukc90F-UvrAMz_x_LUA/formResponse" method="POST" id="ss-form" target="hidden_iframe" onsubmit="submitted=true;">
@ravi131077
Copy link

this dosent work ...?

@DrPaulJS
Copy link

I found this redirection code to work well when added to a template file I'd created within a wordpress site - just what was needed as the Google Forms plug-in does not work with the new version of Google forms and the old version is being withdrawn on 22 August 2018!
Many thanks wboykinm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment