【问题标题】:Add remove fields dynamically using contact form 7 plugin使用联系表单 7 插件动态添加删除字段
【发布时间】:2017-06-02 14:47:01
【问题描述】:

我想像下面的链接一样为我的表单动态添加或删除字段。我使用联系表格 7 插件来显示表格。有没有相关的插件?

https://www.sanwebe.com/2013/03/addremove-input-fields-dynamically-with-jquery

【问题讨论】:

    标签: wordpress contact-form-7


    【解决方案1】:

    看看Conditional Fields for Contact Form 7 插件。有一个易于遵循的tutorial 了解如何设置条件表单。

    Which fields would you like to view? [select pick-fields "Basic fields" "Advanced fields" "All fields"]
    
    [group basic-fields]
    <fieldset>
    <legend>Basic Fields</legend>
    
    Your name
    [text name]
    
    Your email
    [text email]
    </fieldset>
    
    [/group]
    [group advanced-fields]
    
    <fieldset>
    <legend>Advanced Fields</legend>
    
    Your operating system
    [select pick-os "Windows" "Mac" "Linux" "Android" "iOS" "Other"]
    [group other][text other_os][/group]
    
    Some advanced fields
    [text adv]
    </fieldset>
    
    [/group]
    

    【讨论】:

    • 我会尽力让你知道
    猜你喜欢
    • 1970-01-01
    • 2019-04-19
    • 2016-10-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-01-22
    • 1970-01-01
    • 2014-11-17
    相关资源
    最近更新 更多