Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • beekoff
    Participant

    @beekoff

    Thanks for your suggestions @venutius. With these the only options I’m going to wait for BuddyDev to update a workaround into BuddyPress Member Types Pro plugin (he’s very proactive, and says it’s now in queue).

    Hopefully Nouveau and future BP templates will make conditionally hidden (but required) xProfile fields inert in this state. These fields are so important to augmenting registration on BP sites, and so hopefully it gets baked into the code (instead of having to find workarounds).

    I appreciate your help!

    Sam


    beekoff
    Participant

    @beekoff

    Darn-it. Not yet. Will keep trying little tweaks.

    Thanks for your help, regardless, Venutius.

    Sam


    beekoff
    Participant

    @beekoff

    Hi Venutius – Chrome was returning the following errors, and thus I’ve added each of those fields into your snippet (at bottom). And unfortunately it’s still not working (resulting Chrome errors are identical).

    An invalid form control with name=’field_2′ is not focusable.
    (index):1 An invalid form control with name=’field_15′ is not focusable.
    (index):1 An invalid form control with name=’field_4′ is not focusable.
    (index):1 An invalid form control with name=’field_6′ is not focusable.
    (index):1 An invalid form control with name=’field_13′ is not focusable.
    (index):1 An invalid form control with name=’field_7′ is not focusable.
    (index):1 Unchecked runtime.lastError: The message port closed before a response was received.

    Here’s what I added to my theme’s functions.php (and I am also using template Nouveau, btw):

    add_action( 'bp_nouveau_get_signup_fields', 'venutius_remove_email_signup_field_required' );
    
    function venutius_remove_email_signup_field_required( $fields ) {
    	
    	$fields['field_2']['field_15']['field_4']['field_6']['field_13']['field_7']['required'] = false;
    	
    	return $fields;
    }

    The submit button is still seeing the conditionally hidden required fields on my registration form (which are blank), and not letting the form to submit.

    Do you see any issues with my customization to your snippet?

    Thanks,
    Sam

    //Sorry if this is a duplicate post

Viewing 3 replies - 1 through 3 (of 3 total)
Skip to toolbar