无法将单选按钮响应提交到 Google 电子表格

Unable to submit Radio Button response to Google Spreadsheet

我正在使用 Google 表单的 name 属性将我的 Bootstrap 表单数据提交到 Google 电子表格。每个 文本字段 都已成功提交,但单选按钮没有响应。

实际上提交了一个单选按钮响应,但只发生了一次,当时我在 旁边添加了 value="Fron Indus to Oxus English)" name 属性,但我现在无法弄清楚!

我所做的是创建具有相同字段的类似 Google 表单,查看其来源 (Ctrl+U) 并为每个表单实体提取 name 属性。然后我在自定义构建的 Bootstrap 表单中使用了该名称属性。每个响应都已成功提交,单选按钮除外。

我在 Google 驱动器上托管了该表单,以便您可以查看它的行为方式,请在此处查看:
view here: Book Order Form

你需要的在这里:

电子表格:
https://docs.google.com/spreadsheets/d/1Oem-18J6OTBv6C40hGf6CXKIM-N5o9Ri16QA6U21D4c/

假设我们现在有这两个选择,这是标记:

<div class="col-lg-12">
  <input type="radio" name="entry.1896965130" value="From Indus to Oxus (English)">
  <label class="radio-radio-label" >From Indus to Oxus (English)</label>
</div>
<div class="col-lg-12">
  <input type="radio" name="entry.1896965130" value="From Indus to Oxus (Urdu)">
  <label class="radio-radio-label" >From Indus to Oxus (Urdu)</label>
</div>

请查看电子表格并弄清楚该回复是如何提交的以及为什么不再提交。

我遇到了类似的问题。最终我发现以下代码有效:

<div class="form-group" name="entry.2000113276">
  <label for="rsvpStatus" class="col-lg-2 control-label">How many?</label>
  <div class="radio-inline">
    <label><input type="radio" name="entry.2000113276" value="0">0</label>
  </div>
  <div class="radio-inline">
    <label><input type="radio" name="entry.2000113276" value="1">1</label>
  </div>
  <div class="radio-inline">
    <label><input type="radio" name="entry.2000113276" value="2">2</label>
  </div>
  <div class="radio-inline">
    <label><input type="radio" name="entry.2000113276" value="More">More</label>
  </div>
</div>

我尝试进行系统调试,但老实说,我无法弄清楚哪个组件是使其工作的关键。

我知道已经有一段时间了,但我在这里遇到了同样的情况,并找出导致问题的原因。所以我想在这里记录一下,以便其他人可以节省调试时间。

要将单选按钮的值传递给您的 google 表单,必须指定输入的值并与您在 [=23= 中设置的值完全匹配(区分大小写) ]表格。

例如: 您的 html 代码中有一个“女性和男性”单选按钮,该值分别设置为“F & M”。但是在您链接的 google 表单中,您有一个“女性和男性”单选按钮。不会通过成功的。

要将自定义 html 表单的值传递给 google 表单,您必须将 html 表单中该条目的值更改为“女性和男性”。

因此,要将值成功传递给 google 表单 -> sheet,您不仅要匹配“name”属性,还要匹配“value”属性。