BuddyDev

Search

Hide group (tab) if it is empty

  • Participant
    Level: Initiated
    Posts: 1
    Roy Dekker on #18850

    Hello,

    I work with buddypress in combination with the plugins monkey and plugin “Conditional Profile Fields for BuddyPress” and “Conditional Profile Fields for BuddyPress”.

    In the main group the user can indicate how many children he has. If he fills in 2 the fields of group [my child 2] are visible. When he fills in 1 or zerro, the fields are invisible. This is currently working well.

    I only want to be able to hide the whole group [child 2] if he has 1 child. Now you can click on a group while it is empty. See screenshots: https://ibb.co/ehVjZf

  • Participant
    Level: Initiated
    Posts: 1
    Roy Dekker on #18851

    Sorry monkey is not a plugin 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 24250
    Brajesh Singh on #19017

    Hi Roy,
    I am sorry, I could not see and reply it here.

    The plugin is not able to work with.

    From your use case, It should be a very simple thing to achieve using jQuery.

    My suggestion, bind change events on the input and show/hide tabs(field groups accordingly).

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved