Title: Clear Fields issue
Last modified: October 19, 2017

---

# Clear Fields issue

 *  [zenello](https://wordpress.org/support/users/zenello/)
 * (@zenello)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/clear-fields-issue/)
 * Dear Jules,
 * your plugin is great. I have set it up and it is working. I am having one issue
   tho.
 * In my form there is a drop down which is the primary factor for all the conditional
   logic.(Drop-Down you can select between 1 to 11 pax)
 * So if someone selects for example 3 pax but the switches to 5 pax. In the confirmation
   mail I get the information from 8 pax instead of the selected 5 pax because the
   form also submits the 3 pax which has been filled out previously.
 * Is there any way to always clear all the conditional fields if someone changes
   the selection from the drop down?
 * I hope you can help me out!
 * Thanks in advance

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

 *  Plugin Author [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/clear-fields-issue/#post-9623705)
 * there’s no built in way to clear the fields. BUT there is a way to show only 
   fields that were visible during form submit.
 * Just wrap the content blocks in the email with [pax-group-1] … [/pax-group-1]
   tags.
 * It’s also described here: [http://bdwm.be/wpcf7cf/how-to-set-up-conditional-fields-for-contact-form-7/#mail](http://bdwm.be/wpcf7cf/how-to-set-up-conditional-fields-for-contact-form-7/#mail)
 *  Thread Starter [zenello](https://wordpress.org/support/users/zenello/)
 * (@zenello)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/clear-fields-issue/#post-9627272)
 * Yea I have tried that but when I do that inside the confirmation emails for both
   parties there are a lot of empty spaces.
 *  Plugin Author [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/clear-fields-issue/#post-9632502)
 * Try and do it by opening a new group on the same line right after closing the
   previous one:
 *     ```
       [group1]
   
       group1 content here.
   
       [/group1][group2]
   
       group 2 content here.
   
       [/group2]
       ```
   
    -  This reply was modified 8 years, 7 months ago by [Jules Colle](https://wordpress.org/support/users/jules-colle/).

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

The topic ‘Clear Fields issue’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/clear-fields-issue/#post-9632502)
 * Status: not resolved