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

nested groups

You can create groups inside another group. For example:

[group a]
  [group a1] .. [/group]
  [group a2] .. [/group]
[/group]

Example:

Form

    Select Cat:

    You are now in cat one.

    Select Subcat:

    You are now in sub cat one.

    You are now in sub cat two.

    You are now in cat 2
    Select Subcat:

    You are now in sub cat one.

    You are now in sub cat two.

    Form Code

    Select Cat: [select select-cat include_blank "cat 1" "cat 2"]<br>
    
    [group cat1]
      You are now in cat one.<br>
      Select Subcat: [select select-subcat-1 include_blank "subcat 1" "subcat 2"]<br>
      [group subcat1-1]
        You are now in sub cat one.<br>
        [text text1-1]
      [/group]
      [group subcat1-2]
        You are now in sub cat two.<br>
        [text text1-2]
      [/group]
    [/group]
    
    [group cat2]
      You are now in cat 2
      Select Subcat: [select select-subcat-2 include_blank "subcat 1" "subcat 2"]<br>
      [group subcat2-1]
        You are now in sub cat one.<br>
        [text text2-1]
      [/group]
      [group subcat2-2]
        You are now in sub cat two.<br>
        [text text2-2]
      [/group]
    [/group]
    
    [submit "submit"]

    Conditional Fields (Text)

    show [subcat2-2] if [select-subcat-2] equals "subcat 2"
    show [subcat2-1] if [select-subcat-2] equals "subcat 1"
    show [subcat1-2] if [select-subcat-1] equals "subcat 2"
    show [subcat1-1] if [select-subcat-1] equals "subcat 1"
    show [cat2] if [select-cat] equals "cat 2"
    show [cat1] if [select-cat] equals "cat 1"