Title: Toggle Button
Last modified: December 22, 2023

---

# Toggle Button

 *  Resolved [michaelrieder](https://wordpress.org/support/users/michaelrieder/)
 * (@michaelrieder)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/toggle-button-7/)
 * Hi CodePeople
 * I know it’s close to Xmas and you deserve your time out.
 * Here is my last question for this year:
 * How can I make a toggle button to show/hide a field.
 * The first click shows the fieldname72 and change the button caption, the second
   click hides the fieldname72 and resets the button caption.
 * Best Regards Michael
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ftoggle-button-7%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/toggle-button-7/#post-17297051)
 * Hello [@michaelrieder](https://wordpress.org/support/users/michaelrieder/),
 * To show/hide the fieldname72 field by pressing a button in the form, please follow
   the steps below:
 * 1. Enter the class name `hide` through the “Add CSS Layout Keywords” in the fieldname72
   field’s settings.
 * 2. Edi the onclick button event as follows:
 *     ```wp-block-code
       getField('fieldname72').jQueryRef().toggleClass('hide');
       ```
   
 * Please note the plugin support does not cover the implementation of users’ projects
   or custom behaviors. If you need to modify the fields’ labels by coding, you 
   can request a custom coding service directly via the plugin website. [Contact Us](https://cff.dwbooster.com/customization)
 * Best regards.
 *  Thread Starter [michaelrieder](https://wordpress.org/support/users/michaelrieder/)
 * (@michaelrieder)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/toggle-button-7/#post-17297091)
 * Thanks! Merry Xmas

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

The topic ‘Toggle Button’ 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/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [michaelrieder](https://wordpress.org/support/users/michaelrieder/)
 * Last activity: [2 years, 5 months ago](https://wordpress.org/support/topic/toggle-button-7/#post-17297091)
 * Status: resolved