简体   繁体   English

在检查谷歌表单的输入元素时,我找不到“名称”属性。 如何找到它?

[英]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="">

You can obtain the name attribute if you create a pre-filled link of type 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.

相关问题 检查输入字段后在谷歌表单中找不到名称属性 - Couldn't find the name attribute in google form after inspecting the input field 我如何找到提交表单后按下输入后剩下的输入字段。 - How do I find the input field that I left from after enter pressed that submits a form. 检查浏览器时,我在哪里可以找到我在 React 组件中编写的 CSSinJS 样式? - Where can i find the CSSinJS style i have written in the React component while inspecting browser? 如何在数组中找到2个元素并以PHP形式返回数组? - How can I find 2 elements in an array and return the array in a form in PHP? 如何找到表格中的元素总数? - How can i find the total number of elements in a form? 如何查找表单中第一个输入的名称,但如何排除名称为“ __RequestVerificationToken”的输入 - How to find the name of the first input in form but exclude an input with the name '__RequestVerificationToken' 如何使用名称属性查找输入字段的值? - How to find value of input field using name attribute? 我找不到函数名称 - I can't find the function name 如何使用jquery查找并选择具有以特定单词开头的数据属性的所有元素? - How can I find and select all elements which have data attribute start with specific word with using jquery? 我在使用 pytest 的网页上找不到任何元素,但我可以使用控制台找到相同的元素 - I can't find any elements on the webpage using pytest, but I can find the same elements using console
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM