【问题标题】:Wordpress contactform7 how to pass info to email?Wordpress contactform7 如何将信息传递到电子邮件?
【发布时间】:2022-01-04 08:51:16
【问题描述】:

我在contactform7 中创建了自定义复选框。看起来不错,你可以勾选复选框,但提交后不会将信息发送到 ant email。任何想法如何通过它? 复选框代码:

<span class="wpcf7-form-control-wrap your-services">
<span class="wpcf7-form-control wpcf7-checkbox">
  <span class="wpcf7-list-item">
    <label class="custom-control custom-checkbox">
    <input type="checkbox"class="custom-control-input"> Checkbox text
      <span class="custom-control-indicator"></span>
      <span class="wpcf7-list-item-label custom-control-description"></span>
      </span>
 </span>

【问题讨论】:

  • 不可能。

标签: wordpress contact-form-7


【解决方案1】:

输入缺少name="" 参数。

<span class="wpcf7-form-control-wrap your-services">
<span class="wpcf7-form-control wpcf7-checkbox">
  <span class="wpcf7-list-item">
    <label class="custom-control custom-checkbox">
    <input type="checkbox" name="test_checkbox" class="custom-control-input"> Checkbox text
      <span class="custom-control-indicator"></span>
      <span class="wpcf7-list-item-label custom-control-description"></span>
      </span>
 </span>

现在您可以在邮件编辑器中使用[text_checkbox] 获取复选框值

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2023-03-04
    • 2023-03-23
    • 2019-05-09
    • 2016-01-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多