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

Acceptance

If you want to use the acceptance field inside a conditional group, make sure to add this line to the additional settings of your form:

acceptance_as_validation: on

Otherwise it will not be possible to submit the form if there is an unchecked acceptance field inside a hidden group. More about acceptance_as_validation.

Example 1: simple acceptance field

Form

    Thanks for agreeing to the terms and conditions.

    Form Code

    [acceptance a]agree to <a href="#terms">terms and conditions</a>[/acceptance]
    [group g]Thanks for agreeing to the terms and conditions.[/group]
    [submit]

    Conditional Fields (Text)

    show [g] if [a] equals "1"

    Edit this form in the form tester

    Example 2: acceptance fields in groups

    Form

      show group 1show group 2

      Form Code

      [checkbox c "show group 1" "show group 2"]
      [group g1]
        [acceptance a1]agree to group 1 <a href="#terms">terms and conditions</a>[/acceptance]
      [/group]
      [group g2]
        [acceptance a2]agree to group 2 <a href="#terms">terms and conditions</a>[/acceptance]
      [/group]
      [submit]

      Conditional Fields (Text)

      show [g1] if [c] equals "show group 1"
      show [g2] if [c] equals "show group 2"

      Edit this form in the form tester