Skip to content

Instantly share code, notes, and snippets.

@russweas
Created November 16, 2014 22:33
Show Gist options
  • Save russweas/c39949bcb273da91f0b5 to your computer and use it in GitHub Desktop.
Save russweas/c39949bcb273da91f0b5 to your computer and use it in GitHub Desktop.
Just the Basics: Google Forms
Form Action: resolvedtdt.com/php%20form
Required Hidden Form Elements:
form - the google id of the google form
redirect - where you want the browser to go after the google form is saved
How to find input names and form name:
1) When editing the Google Form, click underneath "Responses" "Get pre-filled URL"
2) Just hit submit
3) Copy the link
4) It will look something like
"https://docs.google.com/forms/d/1DAFgXIyxaW9ome6D8TzKzJB-evFArPmR9-pabPkShfE/viewform?entry.752811448&entry.738490887", meaning
"https://docs.google.com/forms/d/ {{THE FORM NAME}} /viewform?{ENTRY 1 NAME}}&{ENTRY 2 NAME} "
The form name goes in the form one, while the rest are just the names of the inputs
EXAMPLE FORM:
<form action="resolvedtdt.com/php%20form" method="POST">
<input type="hidden" name="form" value="1DAFgXIyxaW9ome6D8TzKzJB-evFArPmR9-pabPkShfE">
<input type="hidden" name="redirect" value="http://www.google.com">
<input type="text" name="entry.752811448">
<input type="text" name="entry.738490887">
<input type="submit">
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment