My question is basically the same as this one asked on StackOverflow, too old to migrate, but which seems to be a better fit here.

This answer (more authoritatively, here) suggests a way to add a visible field to a form and set its default value, but I'd like to then make that field hidden to help not confuse people who are filling out the form.

This question suggests a couple failed strategies to get hidden items, such as prefilling a deleted question or skipped page. I have a single-page form and for UX reasons need to keep it that way.

This snippet suggests it's possible but doesn't say how.

  • WBT, did you try my solution? Would that work for you? Did you probably find some alternative? Apr 11 '16 at 16:57
  • @marikamitsos Though the answer may be useful to others, I find it unsatisfactory from a UX perspective. See my comment on the answer.
    – WBT
    Apr 11 '16 at 17:33

What @Ruben mentions is correct.

Still. I believe that you can achieve what you want because you do NOT actually want to hide the field.
Frankly, I do NOT see a need to hide the fields from your users.

You mention:

...but I'd like to then make that field hidden to help not confuse people who are filling out the form

Assuming I read your question correctly, the following could be the solution to your problem.

How to prevent users from altering a prefilled question/field
or How to "hide" a prefilled question

  • Create a question.
    1. Make the answer multiple choice with just one option.
    2. Make the answer required.
  • Repeat steps 1 & 2 for as many questions as you like.
  • Prefill the fields.
  • Share the prefilled link of the form.

A very simple solution.

  • A useful approach, but still could be unnecessarily confusing to users, particularly when the fields are internal identifier strings that look like gibberish.
    – WBT
    Mar 31 '16 at 13:31
  • This is one of the approaches I took, but the problem (for me anyways) is how the data arrives in the Google Sheet Responses. Instead of getting the answers in "1 column", you'll be getting them in "20 columns" and all of the sudden you've got data going everywhere (another problem). I'm aware you could =transpose() this column, but this route can get messy and seems hacky... Am I understanding your answer correctly?
    – Oneezy
    Feb 23 '17 at 4:54
  • @Oneezy "Instead of getting the answers in "1 column", you'll be getting them in "20 columns" That is the default way of getting answers in Google Forms. "you could =transpose()" Entirely your choice (as with any Google Form). Has nothing to do with the issue here. If you are comfortable with coding you could have a look at the answers at: Hidden Field in a Google form Feb 23 '17 at 14:23
  • @marikamitsos i don't think i described my particular issue good enough to you..i wrote a stack question last night that explains more in depth: Google Forms SECTION Links
    – Oneezy
    Feb 23 '17 at 22:37

Google Forms doesn't supports hidden form fields but Google Apps Script HTML Service does.


Google forms may not support hidden fields directly, but there is an easy work around. Just create a new form page with the fields you need and then restrict access to the page with a validated check box question. The question could say something like "admin only" and the answer your validation settings check for is a secret password you set.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.