Title: Conditional fields
Last modified: March 25, 2019

---

# Conditional fields

 *  Resolved [Debora1976](https://wordpress.org/support/users/debora1976/)
 * (@debora1976)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/conditional-fields-31/)
 * Hi,
 * This is a great plugin, but I use conditional fields and they aren’t displayed(
   also conditionally) in the search form.
    [https://buddydev.com/plugins/conditional-profile-fields-for-buddypress/](https://buddydev.com/plugins/conditional-profile-fields-for-buddypress/)
 * Kind regards,
    Debby
    -  This topic was modified 7 years, 2 months ago by [Debora1976](https://wordpress.org/support/users/debora1976/).

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

 *  Plugin Author [Andrea Tarantini](https://wordpress.org/support/users/dontdream/)
 * (@dontdream)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/conditional-fields-31/#post-11353721)
 * Hi Debby,
 * To make it work with BP Profile Search forms, add this code to your _bp-custom.
   php_ file:
 * `add_filter( 'bp_is_conditional_profile_field_active', '__return_true' );`
 *  Thread Starter [Debora1976](https://wordpress.org/support/users/debora1976/)
 * (@debora1976)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/conditional-fields-31/#post-11354065)
 * Hi Andrea,
 * Thanks, but with or without the function all the fields show up immediately, 
   but some fiels are irrelevant, because I use conditions.
    So is it possible to
   show only the relevant fields in the search form, which show or hide by the same
   conditions?
 * Kind regards,
    Debby
 *  Plugin Author [Andrea Tarantini](https://wordpress.org/support/users/dontdream/)
 * (@dontdream)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/conditional-fields-31/#post-11358958)
 * Hi Debby,
 * Sorry I gave you a wrong advice!
 * The code I provided used to work in the past, when the HTML markup of BuddyPress
   and of the _BP Profile Search_ form templates was the same.
 * Today that’s no longer true, so _Conditional Profile Fields for BuddyPress_ can’t
   work with _BP Profile Search_ forms.
 * A solution could be to write a form template that, again, uses the same HTML 
   markup of BuddyPress. Unfortunately at the moment I’m unable to do that, but 
   I’m adding this feature to my to-do list.
 *  Thread Starter [Debora1976](https://wordpress.org/support/users/debora1976/)
 * (@debora1976)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/conditional-fields-31/#post-11359684)
 * Oke, thank you very much.
    I’ll weet and see…
 * Kind regards,
    Debby

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

The topic ‘Conditional fields’ is closed to new replies.

 * ![](https://ps.w.org/bp-profile-search/assets/icon.svg?rev=1568973)
 * [BP Profile Search](https://wordpress.org/plugins/bp-profile-search/)
 * [Support Threads](https://wordpress.org/support/plugin/bp-profile-search/)
 * [Active Topics](https://wordpress.org/support/plugin/bp-profile-search/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bp-profile-search/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bp-profile-search/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Debora1976](https://wordpress.org/support/users/debora1976/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/conditional-fields-31/#post-11359684)
 * Status: resolved