cf7复选框未发送正确的值

时间:2019-03-21 16:56:56

标签: wordpress contact-form-7

我正在尝试使用插件CF7条件表格创建一个包含条件逻辑的cf7表格。

这一切似乎都能正常工作,但是由于某些原因,我有两个问题:

1)复选框“ services-list”的名称正在将“ services-list []”输出到HTML(<input type="checkbox" name="services-list[]" />)。

2)发送邮件时,仅发送一项服务,而不是所有选定的服务。

我已经在网上搜索了一个小时的解决方案,但似乎还是无法解决。帮助将不胜感激。

这是表格:

[text subject id:hidden-subject]

<label class="form-label"> name </label>
  [text* business-name] 

<label class="form-label"> services i offer </label>
  [radio services id:services-radio default:1 "everything" "part services"]

[group services-list-group]
[checkbox services-list "option A" "option B" "option C"]

[/group]

<label class="form-label">areas</label>
[checkbox north-region id:north-region "north"]
[group north-cities clear_on_hide]
[checkbox north-region-cities "option A" "option B" "option C"]
[/group]

[checkbox center-region id:center-region "center"]
[group center-cities clear_on_hide id:test]
[checkbox center-region-cities "option A" "option B" "option C"]
[/group]

[checkbox south-region id:south-region "south"]
[group south-cities clear_on_hide]
[checkbox south-region-cities "option A" "option B" "option C"]
[/group]

<div id="form-hours">
<h3>hours</h3>
<label class="form-label"> opening </label>
  [text* opening-hour]

<label class="form-label"> closing</label>
  [text* closing-hour]
</div>

[text uid id:determined-uid]

<label class="form-label"> how many </label>
  [select* number-of-leads "50 - 10" "200 - 50" "500 - 200" "1000 - 500" "+1000"]

[submit "send"]

我应该提到,城市复选框可以正常工作,并发送每个选中的复选框。

我很乐意回答任何其他问题。

0 个答案:

没有答案