BuddyDev

Search

Conditional Profile Fields

  • Participant
    Level: Enlightened
    Posts: 66
    phil may on #18942

    I wanted to make a conditional field for registration that asks:
    “Do you want to stream?”
    if yes
    then show
    xprofile field 1
    xprofile field 2
    xprofile field 3
    else
    hide xprofile fields 1-3

    because my theme shows all xprofile fields on the registration page regardless if set to primary or seperate field group (ANNOYING).

    so i created the fields like so:
    https://snag.gy/8iwNOU.jpg

    this should hide them by default and only show is user selects the YES option from dropdown.

    However this is how it shows on the registration form:
    https://snag.gy/ZVEbUR.jpg

    I am almost 100% positive that they coded the registration page template incorrectly or this would work, here is the reg template:
    https://pastebin.com/8YTWGi1N

    Im almost positive the lines starting around line 790 begin to hoo the xprofile fields but the lack the ability to identify if its a primary field or not, or of its a conditional

  • Keymaster
    (BuddyDev Team)
    Posts: 24149
    Brajesh Singh on #18947

    Hi Phil,
    I am sorry but the plugin will not work with your theme.

    The plugin needs some classes/ids to work with conditions. All normal BuddyPress theme have this set properly.

    The theme is not following any normal way, so I am sorry but even if I want, I won’t be able to do much with it.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 66
    phil may on #18949

    ill try to get them to make a new registration page template but i doubt they will

  • Participant
    Level: Enlightened
    Posts: 66
    phil may on #18974

    could this be fixed with a custom registration template in the child theme?

  • Keymaster
    (BuddyDev Team)
    Posts: 24149
    Brajesh Singh on #18975

    Hi Phil,
    It could most probably be fixed. I checked your theme’s register file and it has too much code. I fear overriding/changing might break your theme.

    My suggestion, get the help from theme developers. It will save you a lot of issues.

    Regards
    Brajesh

  • Participant
    Level: Master
    Posts: 285
    evillizard on #18978

    brajesh bro, i need your help boss. i messaged buddydev fb page

  • Keymaster
    (BuddyDev Team)
    Posts: 24149
    Brajesh Singh on #18979

    Hi @evillizard ,
    Please open a topic here. We do not provide assistance via our facebook page(We do sometimes but it is rare).

    Thank you
    Brajesh

  • Participant
    Level: Master
    Posts: 285
    evillizard on #18981

    ok boss @brajesh, but consider facebook support, thats the fastest way for people to reach buddydev – ild open a topic now

  • Keymaster
    (BuddyDev Team)
    Posts: 24149
    Brajesh Singh on #18984

    Thank you for the suggestion.
    We will certainly consider it in future.

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved