• 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/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Can be done with jQuery, I think. Ensure that these fields are not “mandatory”, or will be “hidden error” loop.

    Thread Starter matthewnelsonj

    (@matthewnelsonj)

    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 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.