Title: Nested Groups not working
Last modified: December 15, 2022

---

# Nested Groups not working

 *  Resolved [benhartwich](https://wordpress.org/support/users/yoursql719/)
 * (@yoursql719)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/nested-groups-not-working/)
 * Hi, I am trying nested groups and it won´t work. I´ve tried contact form 7 5.6.4,
   but it doesn´t work also with this version. This is my nested group:
 *     ```wp-block-code
       [group details]
       <label>Wie viele Personen nimmst du mit?
       [number* personanzahl min:0 max:10]</label>
   
       <label>Brauchst du ein Hotelzimmer?
       [select* hotel include_blank "Ja" "Nein"]</label>
   
          [group anzahl]
          <label>Wie viele Personen übernachten insgesamt im Zimmer?
          [number zimmer]</label>
          [/group]
   
       [/group]
       ```
   
 * And I also have set this rules:
 *     ```wp-block-code
       show [details] if [teilnahme] equals "Ja"
       show [anzahl] if [zimmer] equals "Ja"
       ```
   
 * The first condition (group details) works, but the second (group anzahl) not.
   I don´t know why. I am happy to get some hints.
 * Thanks!

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

 *  Plugin Author [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/nested-groups-not-working/#post-16292726)
 * Looks like you are trying to show a group based on a field inside a group? That’s
   kind of weird, because how would you set a value to the field if its containing
   group is not visible in the first place?
 * Could you set up the form here: [https://conditional-fields-cf7.bdwm.be/form-tester/](https://conditional-fields-cf7.bdwm.be/form-tester/)
 * and clearly explain to me what you expect to happen? Because I don’t understand
   the logic of your conditions.
 *  Thread Starter [benhartwich](https://wordpress.org/support/users/yoursql719/)
 * (@yoursql719)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/nested-groups-not-working/#post-16292737)
 * Hi, thanks for the quick reply. I´ve got one condition, if someone participates
   on an event – then the details group is shown. Within the details group there
   is a condition if the person needs a hotel room and if yes, for how many people.
 * So I need these nested fields to show the detail fields only if a person participates
   on the event and second the room size, if he needs a room to stay. I hope, that
   I have made it understoodable. I´ve created the form here: [http://conditional-fields-cf7.bdwm.be/form-tester/?hash=942bab6cb55469bce0649f63c54750b8](http://conditional-fields-cf7.bdwm.be/form-tester/?hash=942bab6cb55469bce0649f63c54750b8)
 *  Plugin Author [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/nested-groups-not-working/#post-16296584)
 * I think you meant to use this condition instead (previously, you had `zimmer`
   in here):
 *     ```wp-block-code
       show [anzahl] if [hotel] equals "Ja"
       ```
   
 * See: [https://conditional-fields-cf7.bdwm.be/form-tester/?hash=0b0497ea4fae2c94fa639938c1fa9bdf](https://conditional-fields-cf7.bdwm.be/form-tester/?hash=0b0497ea4fae2c94fa639938c1fa9bdf)
 *  Thread Starter [benhartwich](https://wordpress.org/support/users/yoursql719/)
 * (@yoursql719)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/nested-groups-not-working/#post-16300294)
 * Thanks, this worked!

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

The topic ‘Nested Groups not working’ 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/)

 * 4 replies
 * 2 participants
 * Last reply from: [benhartwich](https://wordpress.org/support/users/yoursql719/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/nested-groups-not-working/#post-16300294)
 * Status: resolved