【问题标题】:Do not send blank fields via email+contact form 7不要通过电子邮件+联系表格发送空白字段 7
【发布时间】:2020-08-17 19:52:23
【问题描述】:

我使用联系表单 7 实施了服务预订表单。如何防止未选择的字段被发送到客户的电子邮件?我的表格如下:

 <div class="row">
    <div class="col-sm-4">
        <span style="padding-bottom: 2em;"></span>
        <span class="products">test 1</span>
    </div>
    <div class="col-sm-2">
        <div class="qty-count qty-count--order">
            <span class="count-reduce">–</span>
            [text text-195 class:count-input "0"]
            <span class="count-add">+</span>
        </div>
    </div>
    <div class="col-sm-4">
        <span style="padding-bottom: 2em;"></span>
        <span class="products"> test 2</span>
    </div>
    <div class="col-sm-2">
        <div class="qty-count qty-count--order">
            <span class="count-reduce">–</span>
            [text text-349 class:count-input "0"]
            <span class="count-add">+</span>
        </div>
    </div>
</div>

配置电子邮件:

test1: [text-195]

test2: [text-349]

【问题讨论】:

    标签: wordpress contact-form-7


    【解决方案1】:

    你应该在输入之后添加一个星号(*)。像这样:

    [text* text-349 class:count-input "0"]
    

    【讨论】:

    • 没有。我不想填写这些字段。我的意思是当没有选择任何字段时不要将空值发送到电子邮件。
    猜你喜欢
    • 2013-12-29
    • 1970-01-01
    • 1970-01-01
    • 2017-06-23
    • 1970-01-01
    • 2017-09-13
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多