Title: Hide Unhide fieldsets
Last modified: July 21, 2020

---

# Hide Unhide fieldsets

 *  Resolved [Marin Marinov](https://wordpress.org/support/users/mpmarinov/)
 * (@mpmarinov)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/hide-unhide-fieldsets/)
 * Hello,
 * since I did not find anything suitable in the forum I want to ask the following:
 * How can I hide the fieldset’s and after clicking on the button to show the fields.
   I also added CSS class.
 * Thanks for the help of those who responded.

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

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/hide-unhide-fieldsets/#post-13151905)
 * Hello [@mpmarinov](https://wordpress.org/support/users/mpmarinov/)
 * Assign to this fieldset the predefined class name: `hide`
 * Note: it is possible to assign multiple class names to the same field, separating
   the class names by blank characters.
 * Finally, enter the following piece of code as the onclick event of the button:
 *     ```
       jQuery('.cff-container-field.hide').removeClass('hide');
       ```
   
 * Best regards.
 *  Thread Starter [Marin Marinov](https://wordpress.org/support/users/mpmarinov/)
 * (@mpmarinov)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/hide-unhide-fieldsets/#post-13151974)
 * And how can I hide the fields again after clicking again?
 * Thank you.
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/hide-unhide-fieldsets/#post-13151997)
 * Hello [@mpmarinov](https://wordpress.org/support/users/mpmarinov/)
 * In this case, I recommend a different solution:
 * Assign to these fields the `hide` class name, as in the previous entry, and a
   custom class name to identify them, for example: `my-show-hide-field`
 * And then, edit the onclick event of button as follows:
 *     ```
       jQuery('.my-show-hide-field').toggleClass('hide');
       ```
   
 * Best regards.

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

The topic ‘Hide Unhide fieldsets’ is closed to new replies.

 * ![](https://ps.w.org/calculated-fields-form/assets/icon-256x256.jpg?rev=1734377)
 * [Calculated Fields Form](https://wordpress.org/plugins/calculated-fields-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/calculated-fields-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/calculated-fields-form/)
 * [Active Topics](https://wordpress.org/support/plugin/calculated-fields-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/calculated-fields-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/calculated-fields-form/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [codepeople](https://wordpress.org/support/users/codepeople/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/hide-unhide-fieldsets/#post-13151997)
 * Status: resolved