First update after 20 december 2024 needs extra attention!

Conditional Fields 2.5.5 and later use new folder and file names.
As a result, the plugin will deactivated automatically the first time that you update from version 2.5.4.
Please make sure to activate the plugin manually after the update.

Read more

simple form

This is a simple form with very basic conditional logic.

Form

    wanna fill out some required fields? noyes


    Form Code

    wanna fill out some required fields? [radio radio-show-more default:1 "no" "yes"]
    [group more]
      <label> Your Name (required)
        [text* your-name] </label>
      <label> Your Email (required)
        [email* your-email] </label>
    [/group]
    [group no-more][/group]
    
    <label> Subject
        [text your-subject] </label>
    
    <label> Your Message
        [textarea your-message] </label>
    
    [submit "Send"]

    Email Body

    [more]
      <p>Thanks for filling out these required fields:</p>
      <p>
        Your Name: <strong>[your-name]</strong><br>
        Your email: <strong>[your-email]</strong>
      </p>
    [/more][no-more]
      <p>Looks like you didn't want to fill out any required fields. That's fine. As long as a required field isn't visible during submission, it will not trigger any validation errors.</p>  
    [/no-more]
    <p>
      Here are the non-required fields that you might have filled out:
    </p>
    <p>
      Subject: <strong>[your-subject]</strong><br>
      Your Message: <strong>[your-message]</strong>
    </p>

    Conditional Fields (Text)

    show [more] if [radio-show-more] equals "yes"
    show [no-more] if [radio-show-more] not equals "yes"