Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

BuddyDev

Search

Conditional Fields for Buddypress doesn’t work

  • Participant
    Level: Initiated
    Posts: 2
    Irmgard van de Weijer on #56207

    I use Single Member Type field on my register-page. I want other XProfile fields to become conditionally visible based on the selected member type. This used to work, but it no longer does.

    What I have tested:

    – The Single Member Type field does not fire a native change event on its own anymore; I had to add a custom script to make it emit a change event (verified in the browser console).

    – My own JS and PHP patches run correctly on the registration page.

    – The hook bp_cpf_enqueue_scripts exists, but Conditional Profile Fields does not seem to initialize its scripts on the registration page.

    – In the console, typeof bp_cpf_conditions remains undefined, which indicates that the conditional logic is not being loaded.

    – There are no caching or minification plugins active.

    – The registration page contains XProfile fields, including the Member Type field.

    My question:

    Does the free version of Conditional Profile Fields support conditional logic on the BuddyPress registration page when the Member Type field is used as the trigger?

    If yes:
    Which hook or method should I use to ensure that bp_cpf_conditions is initialized on the registration page?

    If no:
    Is the recommended workaround to create a hidden XProfile select field as the trigger, and copy the Member Type value into that field via JavaScript?

  • Keymaster
    (BuddyDev Team)
    Posts: 25382
    Brajesh Singh on #56208

    Hi,
    Thank you for using the member types pro plugin.
    You do not need conditional field if you are using this plugin.

    If this is not firing, it is a bug.

    – Are you using BP Nouveau or BP legacy template pack?
    – Is there any plugin(like Youzer etc) that changes the signup page markup?
    – Which theme are you using
    – Is the site live/have a staging environment where I can see the registration page? If yes, please share a link.

    Please let me know the details and I will assist. Feel free to use private reply to this post if not comfortable sharing the details publicly.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 2
    Irmgard van de Weijer on #56209

    I don’t use BP Member Types Pro anymore, I changed it to BP Profile Visibility Manager and Conditional Fields for Buddypress. This works better for my setup.
    But now Conditional Fields doesn’t work anymore.

  • Participant
    Level: Initiated
    Posts: 2
    Irmgard van de Weijer on #56210

    I’m not using any plugin that changes the signup markup. I’m only using BuddyPress Nouveau with the Kadence theme.
    The link to the registrationpage: http://www.plektrum.nl/register

You must be logged in to reply to this topic.

This topic is: not resolved