[英]I can't find "name" attribute while inspecting input elements of google form. How to find it?
I have a html form from which I want to store data to google spreadsheet.我有一个 html 表单,我想将数据存储到谷歌电子表格中。 I created google form but when I try to inspect name attribute to link it with HTML form attribute, I couldn't find any.
我创建了谷歌表单,但是当我尝试检查名称属性以将其与 HTML 表单属性链接时,我找不到任何。 I want name="entry.###" attribute.
我想要 name="entry.###" 属性。 Here is what I say when I inspect an input element:
这是我在检查输入元素时所说的话:
<input type="text" class="quantumWizTextinputPaperinputInput exportInput" jsname="YPqjbf" autocomplete="off" tabindex="0" aria-labelledby="i1" aria-describedby="i2 i3" dir="auto" data-initial-dir="auto" data-initial-value="">
https://docs.google.com/forms/d/XXX/prefill
https://docs.google.com/forms/d/XXX/prefill
的预填充链接,则可以获得名称属性Right-click into one of the answer fields and select Inspect
右键单击答案字段之一和 select
Inspect
You should see an element as following:您应该看到如下元素:
<input type="text" class="quantumWizTextinputPaperinputInput exportInput"
jsname="YPqjbf" autocomplete="off" tabindex="0" aria-label="Untitled question"
aria-describedby="i.desc.1567593859 i.err.1567593859" name="entry.975751923"
value="" dir="auto" data-initial-dir="auto" data-initial-value="" aria-invalid="false">
I hade the same issue as the OP.我和OP有同样的问题。 I was puzzled by ziganotschka's reply, but I figured out that the three-dot menu in Google Forms shows the option "get prefilled link".
我对 ziganotschka 的回复感到困惑,但我发现 Google Forms 中的三点菜单显示了“获取预填充链接”选项。 Then, the name attribute is shown.
然后,显示名称属性。
Pre-filled link is not possible if we only have priveleges for a ViewForm link like so: https://docs.google.com/forms/d/e/XXX/viewform如果我们只有这样的 ViewForm 链接的权限,则无法预填链接: https://docs.google.com/forms/d/e/XXX/viewform
So in such cases, there is a simpler solution that can be seen here to get the name attributes: https://youtu.be/DVRM7VLKUFU?t=632所以在这种情况下,这里可以看到一个更简单的解决方案来获取名称属性: https://youtu.be/DVRM7VLKUFU?t=632
The guy up is right...tap the three dots and then get prefilled link then inspect the name in上面的人是对的...点击三个点,然后获取预填充链接,然后检查名称
Saved my night dude, keep on keepin' on.救了我的夜哥们,继续加油。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.