Reputation: 483
I want to get the id of an element in google forms. I found on the internet that it can be done by right clicking on the element and opening inspect element. It is working for older forms but, for new forms, it doesn't show any id attribute. I am posting both images of inspect element.
Old forms:
New forms:
Upvotes: 1
Views: 8824
Reputation: 33
hi this has changed a bit,
you need to get a pre filled link via 3 dot menu then prefilled link , copy it into an editor and confirm these entries. I could not find it visible anywhere in the source code and there are a ton of JS names that seem random and 0 name inputs on my form
Upvotes: 1
Reputation: 385
Try pressing Ctrl+U when on the Google Website. In Firefox this will show up the complete HTML Code where you can search better. There has to be set an Id, because otherwise the text in the element couldn't be accessed
Upvotes: 0
Reputation: 1
Maybe I can help you in finding the id's of the element.
After submitting the form you can look for headers{Form Data} in the network section of developer tools.
You will find something like this.. entry.102708304: "Your response"
102708304 is the id..
Hope my answer was useful. Thank You.
Upvotes: 0
Reputation: 4623
In new form google have replace id with name attribute.So do one thing, write something in textbox then rightclick on textbox and open inspect element, Here you will find item tag with name attribute which is the key you want For eg,
<input name="entry.123456" >
Upvotes: 3