Skip to content

Instantly share code, notes, and snippets.

@wboykinm
Created November 8, 2013 17:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save wboykinm/7374137 to your computer and use it in GitHub Desktop.
Save wboykinm/7374137 to your computer and use it in GitHub Desktop.
Google forms hidden fields
<!-- ADD GOOGLEFORM-RELATED INPUTS HERE, ALL HIDDEN.
THEY'LL BE GIVEN VALUES IN THE SCRIPT BELOW
THE "NAME" AND "ID" PARAMETERS MUST CORRESPOND TO
THOSE IN THE SOURCE OF THE GOOGLE-HOSTED LIVE FORM-->
<!-- QUESTION 1 -->
<input type="hidden" name="entry.338471973" value="" id="entry_338471973">
<!-- QUESTION 2: LAT/LONG -->
<input type="hidden" name="entry.80388879" value="" id="entry_80388879">
<input type="hidden" name="entry.510592791" value="" id="entry_510592791">
@ermGit
Copy link

ermGit commented Jun 19, 2015

How did you use this snippet? I am looking for a way to put hidden fields in a Google Form.

@ivanbacher
Copy link

+1

@Miclo
Copy link

Miclo commented Jul 6, 2017

Just like ermGit Iam looking for a way to pass hidden information to a form that will be submitted to the responses spreadsheet. I don't understand how you get this to work. Would you please explain how it is done? Thanks.

@benvantende
Copy link

Did anybody get anywhere with this. I am also investigating how to add hidden fields.

@danacity
Copy link

I am also interested if anyone, could point me in the direction of how I would change an input type to hidden in google forms.

@eugenefvdm
Copy link

I have tried researching this now for an hour. I don't think it's possible any more. There are multiple "easy" examples on the internet but most point to old Forms stuff. This is a popular link that doesn't work any more: https://morningstudio.com.au/blog/2013/06/how-to-style-google-forms/

I traced some of the issues to the final script tab that refers to freebird. It gives an "Access-Control-Allow-Origin" error, but even if you manually copy the Javascript to localhost it doesn't work, all kinds of new exceptions ensue.

So, for now at least, I don't believe it's possible to do using a prior method.

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