2017-04-02 53 views
-2

我使用的類:需要在我的表單字段,但驗證不起作用。WordPress的聯繫表7驗證不工作

<div class="request-form animation" data-animation="fadeInRight"> 
    <h4>REQUEST AN ESTIMATE</h4> 
    <div style="margin-bottom: 18px">Our estimates are free, professional and fair. Most estimates require a site visit. </div> 
    [text Full Name class:input-custom class:input-full placeholder class:required "Name:"] 
    [text Phone class:input-custom class:input-full placeholder class:required "Phone:"] 
    [text E-mail class:input-custom class:input-full placeholder class:required "Email:"] 
    [textarea Message class:input-custom class:input-full placeholder class:required "Message:"] 
    [submit class:btn class:btn-light "SEND MESSAGE"] 
</div> 

回答

0

您正在添加輸入類型後的*。

要在CF7中創建表單字段,您必須在輸入類型後添加*。 例如。

[text* Full Name class:your-class placeholder "Name"] 

所以,僅僅低於

<div class="request-form animation" data-animation="fadeInRight"> 
    <h4>REQUEST AN ESTIMATE</h4> 
    <div style="margin-bottom: 18px">Our estimates are free, professional and fair. Most estimates require a site visit. </div> 
    [text* Full Name class:input-custom class:input-full placeholder "Name:"] 
    [text* Phone class:input-custom class:input-full placeholder "Phone:"] 
    [text* E-mail class:input-custom class:input-full placeholder "Email:"] 
    [textarea* Message class:input-custom class:input-full placeholder "Message:"] 
[submit class:btn class:btn-light "SEND MESSAGE"] 

替換代碼