Skip to:
Content
Pages
Categories
Search
Top
Bottom

Hide (radio type) fields based on a value


  • qtpweb
    Participant

    @qtpweb

    Hello,

    on the profile View page, I’d like to hide all fields who are radio types and when the value of those is “no” (I have 2 choices with those radio fields, “yes” or “no”)

    I was able to hide fields with bp_get_the_profile_field_value() by checking the value with a condition and strip_tags() to remove html and other functions to some weird invisible characters but that’s a little bit “hacky”…

    Is there a solution ?

    Thanks

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

  • iamthewebb
    Participant

    @iamthewebb

    Why not use the built in visibility to set it so only Administrators can see?


    qtpweb
    Participant

    @qtpweb

    Thanks for your reply.

    I’m not using the visibility option because if the user choose “yes” on any radio fields, that field has to be visible for all members on his profile view page.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar