Title: conditional registration fields (show/hide)
Last modified: August 30, 2016

---

# conditional registration fields (show/hide)

 *  [matthewnelsonj](https://wordpress.org/support/users/matthewnelsonj/)
 * (@matthewnelsonj)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/conditional-registration-fields-showhide/)
 * has anyone found a way to conditionally show/hide specific fields on the registration
   page/profile page? Specifically I want to show/hide one field based on another(
   different) field.
 * If you view my registration page I want to show/hide the two fields in the bottom
   section “Newsletters & Alerts” based on the checkbox for mailchimp integration.
 * wordpress.org/plugins/s2member/
 * [https://wordpress.org/plugins/s2member/](https://wordpress.org/plugins/s2member/)

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

 *  [krumch](https://wordpress.org/support/users/krumch/)
 * (@krumch)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/conditional-registration-fields-showhide/#post-6619136)
 * Can be done with jQuery, I think. Ensure that these fields are not “mandatory”,
   or will be “hidden error” loop.
 *  Thread Starter [matthewnelsonj](https://wordpress.org/support/users/matthewnelsonj/)
 * (@matthewnelsonj)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/conditional-registration-fields-showhide/#post-6619178)
 * Hi Krum, small world!
 * Yeah, I figured jQuery was the way, which I am rubbish at. I’ve been searching
   most of the day for answers but there seems to be one big problem: s2member doesn’t
   nest their custom form field labels and input, either one inside the other or
   inside a single <div>. WIth my basic skills in jquery I have not been able to
   target them and hide them. Also, there is a single display: inline !important!
   somewhere that might also be giving me problems but I’m not knowledgeable with
   jquery enough.
 *  If you look at [http://mthwjsphnlsn.com/wp-login.php?action=register](http://mthwjsphnlsn.com/wp-login.php?action=register)
   you can see the bottom two custom fields under Newsletters & Alerts (one tickbox
   and one radio). I want to hide both of those ( and not pass no value to wp or
   mailchimp) when the bottommost checkbox (s2member’s mailing list integration 
   box) is unticked.

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

The topic ‘conditional registration fields (show/hide)’ is closed to new replies.

 * ![](https://ps.w.org/s2member/assets/icon-256x256.png?rev=980067)
 * [s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions](https://wordpress.org/plugins/s2member/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/s2member/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/s2member/)
 * [Active Topics](https://wordpress.org/support/plugin/s2member/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/s2member/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/s2member/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [matthewnelsonj](https://wordpress.org/support/users/matthewnelsonj/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/conditional-registration-fields-showhide/#post-6619178)
 * Status: not resolved