Email cannot be pre-filled
Hi,
I'm hoping @toperkin is still looking at issues, this repo seems to be abandoned / unloved now?
Anyways, I noticed in your readme, you don't mention the email address in the form construction section, but you have it in the later screenshots.
When you select the pre-filled option, it doesn't allow you to pre-fill the email address, I don't know if this is something new in google forms?
So when the contact form is used, you are forwarded to a google page to provide an email address, so you can no longer provided an approach which is invisible of the google ui.
Obviously, I guess you could provide a plain text field and use that for email addresses instead, but you wouldn't get any validation that google provides. I know this could be provided by javascript instead.
I just wondered if I've missed an option or if this is something new google have introduced? Maybe there's another approach to this, which I haven't thought about ?
Anyways, thanks for providing this repo, good job!
Your reply would be greatly appreciated.
Best regards,
Jules.
Hi Jules
I am having the same problem as you. Since the Email Address field (from enabling Collect email addresses) cannot be pre-filled, we cannot get the entry number of the field. Agree with you that it is good to use "Collect email address". Especailly for the "Response recipients" option, i.e., sending a confirmation email to the submitter. Looks like we cannot use "Collect email addresses"? Or maybe there is a way to find out the entry number of the Collect Email addresses field?
You can actually use Google Email Validation for your own email address field.
In your own Email field,
Choose Advanced settings
Tick the Data Validation checkbox
Choose Text
Choose Email Address
Thank you very much cmgui
Update: Looking at the html source of the form, there is no entry no. for the Collect Email Addresses field.
For a normal field (here it is "name"), the html is below - where 755946008 is the entry no. (same as in the pre-filled link)
<div jsmodel="CP1oW" data-params="%.@.[1449985481,"Name","Your name",0,[[755946008,[],true,[],[],null,null,null,null,null,[null,[]]]],null,null,null,[]],"i5","i6","i7",false]" class="m2">
For the Collect email addresses field, the source is
<div jscontroller="sWGJ4b" jsaction="EEvAHc:yfX9oc;" class="freebirdFormviewerComponentsQuestionBaseRoot freebirdFormviewerComponentsQuestionTextRoot freebirdFormviewerViewEmailCollectionField">
<div jscontroller="v4y9Mc" jsaction="rcuQ6b:vZc4S;sPvj8e:d3sQLd;O22p3e:zjh6rb;AHmuwe:h06R8;b2trFe:eVidQc;">
<div class="freebirdFormviewerComponentsQuestionBaseHeader">
<div class="freebirdFormviewerComponentsQuestionBaseTitle exportItemTitle freebirdCustomFont" dir="auto" role="heading" aria-level="3">Email address
<span class="freebirdFormviewerComponentsQuestionBaseRequiredAsterisk" id="i4" aria-label="Required question"> *</span></div></div>