I am adding a unique ID to each submission of the form. Right now, I made that ID the first field, and pre-filled it with the ID, along with a help text asking the user not
You can't do this directly by Google Forms but you can work around:
Insert the following code into the default Code.gs file. (This basically opens an index.html template.)
doGet(e) {
return HtmlService.createTemplateFromFile('index').evaluate();
}
Create a new index.html file with the source code of your form.
style="display:none" to its enclosing
- Insert any template information into the
field using = your_gscript_code() ?>
- Publish the web app (Publish/Deploy web app...) and you're done.
Now you have a link to a form which has the desired field hidden and pre-filled with your hidden value.
With this solution you can apply any custom style and even get rid of other unnecessary html elements
while keeping the form hosted by Google.