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

Muh*_*riq 4 html javascript google-sheets google-forms google-sheets-api

我有一个 html 表单,我想将其中的数据存储到谷歌电子表格中。我创建了 google 表单,但是当我尝试检查名称属性以将其与 HTML 表单属性链接时,我找不到任何属性。我想要 name="entry.###" 属性。这是我在检查输入元素时所说的话:

<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="">
Run Code Online (Sandbox Code Playgroud)

zig*_*hka 8

如果您创建类型的预填充链接,则可以获得名称属性https://docs.google.com/forms/d/XXX/prefill

右键单击答案字段之一并选择Inspect

您应该看到如下所示的元素:

<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">
Run Code Online (Sandbox Code Playgroud)