Title: Nested Groups Problem
Last modified: February 10, 2018

---

# Nested Groups Problem

 *  Resolved [majancart](https://wordpress.org/support/users/majancart/)
 * (@majancart)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/nested-groups-problem/)
 * I am having trouble with nested groups getting to appear correctly. The code 
   I have is below. For some reason it is not reading the [/group] endings correctly.
   You’ll see I had to put 2 towards the end of the code just to get the last two
   field to show without ticking the 1st conditional field. This is obviously odd
   behavior. Am I missing something or am I trying to nest the fields the wrong 
   way?
 *     ```
       <p>[text* your-name placeholder "Name*"] </p>
   
       <p>[email* your-email placeholder "Email*"] </p>
   
       <p>[tel tel-115 placeholder "Phone"] </p>
   
       <p class="label">Would you like to request a quote?</p>
       <p>[checkbox* checkbox-quote exclusive "No" "Yes"]</p>
   
       [group quote]
   
       <p class="label">What type of Transformer are you interested in?</p>
       <p>[checkbox checkbox-oildry exclusive "Dry Type Transformer" "Oil Filled Transformer"]</p>
   
       [group oil]
   
       <p class="label">Where are the primary and secondary bushings located?</p>
       [checkbox checkbox-oil1 exclusive "Both on the front side behind lockable doors (Pad mount style)" "HV & LV bushings on 180 degree opposite sides – one on left side and the other on right side (Unit substation style)" "Top HV & Top LV bushings or Top HV & Side LV (Station type style)"]</p>
   
       <p>[checkbox checkbox-oil2 exclusive "Regular Mineral Oil" "Envirotemp FR3 high flashpoint, biodegradable vegetable fluid?"]</p>
   
       <p class="label">What type of primary bushings?</p>
       <p>[checkbox checkbox-oil3 exclusive "Live Front" "Dead Front"]</p>
   
       <p>[checkbox checkbox-oil4 exclusive "Radial Feed (3 bushings)" "Loop Feed (6 bushings)"]</p>
   
       <p>[checkbox checkbox-oil5 exclusive "bayonet fuses " "two or four position load break switch" "lightning/surge arresters"]</p>
   
       [/group]
   
       [group dry]
   
       <p>[checkbox checkbox-dry1 exclusive "an enclosure" "core & coils to retrofit into an existing enclosure"]</p>
   
       [group retro]
   
       <p>If dry type retrofit – what are the existing enclosure dimensions? </p>
       <p>[text your-height placeholder "Height"]</p>
       <p>[text your-width placeholder "Width"]</p>
       <p>[text your-depth placeholder "Depth"]</p>
   
       [/group]
   
       <p>[checkbox checkbox-dry2 exclusive "fans (120V motor)" "fans (240V motors)" "fans (120V motor) with digital temperature controller" "fans (240V motors) with digital temperature controller" "digital temperature controller"</p>
   
       [/group]
   
       <p>[checkbox checkbox-376 exclusive "Copper windings" "Aluminum windings"]</p>
   
       <p>[checkbox checkbox-32 exclusive "New" "Reconditioned"]</p>
   
       <p class="label">How quickly would you want/need delivery?</p>
       <p>[checkbox checkbox-192 exclusive "1-2 days" "1-2 weeks" "2-4 months" "longer"]</p>
   
       <p class="label">Attach any drawings of existing unit to assist with correct dimensions.</p>
       <p>[file file-289 limit:10mb]</p>
   
       <p>[text your-citystate placeholder "Your Shipping City & State"]</p>
   
       [/group][/group]
   
       <p>[textarea your-message x4 placeholder "Message"] </p>
   
       <p>[submit "Send"]</p>
       ```
   
 * Thanks,
    Mike
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fnested-groups-problem%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/nested-groups-problem/#post-9961780)
 * you shouldn’t need the last [/group] as far as I can tell. I’ll reproduce your
   form and see what’s going on.
 *  Plugin Author [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/nested-groups-problem/#post-9961975)
 * Seems to work fine over here: [http://bdwm.be/wpcf7cf/majancart/](http://bdwm.be/wpcf7cf/majancart/)
 * Can you share an export of your conditions so I can add those as well? (Use the
   import/export link under your conditions)
 *  Thread Starter [majancart](https://wordpress.org/support/users/majancart/)
 * (@majancart)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/nested-groups-problem/#post-9962108)
 * Sure. I just realized I also need a group for the end if the user answers “No”.
   But my problem is that there is a group after “Dry Type” that should also show
   for “Oil Filled” and does not. As far as I can tell it is outside the Dry Type
   group and should show up for both sets of questions. Thank you SO MUCH for your
   quick response!
 *     ```
       if [checkbox-dry1] equals "core & coils to retrofit into an existing enclosure" then show [retro]
       if [checkbox-oildry] equals "Dry Type Transformer" then show [dry]
       if [checkbox-oildry] equals "Oil Filled Transformer" then show [oil]
       if [checkbox-quote] equals "Yes" then show [quote]
       ```
   
 *  Plugin Author [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/nested-groups-problem/#post-9976913)
 * Hey, turns out you had an error in your form code.
 * You didn’t close the `[checkbox checkbox-dry2` tag.
 * updated code here: [http://bdwm.be/wpcf7cf/majancart/](http://bdwm.be/wpcf7cf/majancart/)
 *  Thread Starter [majancart](https://wordpress.org/support/users/majancart/)
 * (@majancart)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/nested-groups-problem/#post-9984095)
 * Oh jeez! Thank you SO MUCH. Sorry to bomb you with my coding mistake! Things 
   are looking great now 🙂
 *  Plugin Author [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/nested-groups-problem/#post-9985019)
 * No worries. Please leave a small review if you like the plugin.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Nested Groups Problem’ is closed to new replies.

 * ![](https://ps.w.org/cf7-conditional-fields/assets/icon-256x256.png?rev=2072595)
 * [Conditional Fields for Contact Form 7](https://wordpress.org/plugins/cf7-conditional-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cf7-conditional-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cf7-conditional-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/cf7-conditional-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cf7-conditional-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cf7-conditional-fields/reviews/)

## Tags

 * [nested](https://wordpress.org/support/topic-tag/nested/)

 * 6 replies
 * 2 participants
 * Last reply from: [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/nested-groups-problem/#post-9985019)
 * Status: resolved