小编Rij*_*K P的帖子

不需要Wordpress Contact Form 7收音机

我有一个带有少量字段的表单以及一个单选按钮。此单选按钮是一个可选字段。但是,如果我没有从单选按钮中选择任何选项,则无法提交表单。

<div class="input-field-outer">
    [text* your-name class:name placeholder "Name or business name*"]
</div>
<div class="input-field-outer">
    [email* email placeholder "Email*"]
</div>
<div class="input-field-outer">
    [text* contact-number id:telno class:hs-phone-number placeholder "Contact number*"]
    <span id="errmsg"></span>
</div>
<div class="input-field-outer">
    <div class="radio-outer">
        [radio customer_type "New Customer" "Old Customer"]
    </div>
</div>
Run Code Online (Sandbox Code Playgroud)

当我将其中任何一个选为默认值时,它将起作用:

[radio customer_type默认值:1“新客户”“旧客户”]

关于不使用任何项目的单选按钮的任何想法都是默认的。

wordpress radio-button contact-form-7

2
推荐指数
3
解决办法
7608
查看次数

标签 统计

contact-form-7 ×1

radio-button ×1

wordpress ×1