【问题标题】:How To Make New Field Appear When A Checkbox Is Ticked In Contact Form 7在联系表 7 中勾选复选框时如何使新字段出现
【发布时间】:2014-01-17 23:45:51
【问题描述】:

我使用 wordpress 联系表格 7 创建了一个表格,简码如下所示:

<p>Name</p><br />
[text* your-name] </p>

<p>E-mail<br />
[email* your-email] </p>

<p>Subject<br />
[text your-subject] </p>

<p>Message<br />
[textarea your-message] </p>
<p>Where did you hear about us?<br />
[checkbox* your-country "Google search" "referral" "link" "Advertisement"]</p>

<p>[submit "Send"]</p>

但是当人们选择谷歌搜索时,我希望在复选框区域出现一个新字段,人们可以在其中写下他们使用的关键字。

任何帮助将不胜感激!

【问题讨论】:

  • 你能分享你的联系表格生成的html代码吗?实际上我想要你的联系表格 ID

标签: javascript jquery wordpress contact-form


【解决方案1】:

将此 `[text* text-875 "请注明是否是 Google 搜索关键字)"] 放在 [checkbox* your-country "Google search" "referral" "link" "Advertisement"] 旁边

所以它看起来像这样

<p>Where did you hear about us?<br />
[checkbox* your-country "Google search" "referral" "link" "Advertisement"] [text* text-875 "please indacte if Google search key word)"] </p>

或者你可以像这样在单选按钮中做到这一点:

<p>Where did you hear about us?<br />   
[radio radio-100 class:radio-vertical "referral" "link" "Advertisement" "Google search, please indicate key word"] [text text-388] </p>

【讨论】:

    猜你喜欢
    • 2021-09-15
    • 2020-10-07
    • 1970-01-01
    • 2022-09-27
    • 1970-01-01
    • 1970-01-01
    • 2016-05-04
    • 1970-01-01
    • 2011-06-20
    相关资源
    最近更新 更多