I use CIVI 5.x and Drupal 7.

I would like to have conditional fields, that display is certain conditions are met, for example:

New Customer, IF group is business, show business address field, IF group is individual, show home address, etc..

Same behavior as Drupal conditional fields basically

  • It depends, on which page you want to use conditions. If it is something where webform can be used (webform civicrm integration module will provide facility to use civi fields in webform) then you can define conditionals in webform settings. If its a contribution page for example or a profile then you would need to use buildForm hook and will need to do custom coding Aug 6, 2018 at 15:11
  • have you considered doing whatever you need via civicrm_webform which then gives you Webform Conditionals to play with
    – petednz - fuzion
    Aug 7, 2018 at 22:34
  • Yes, I have a lot of experience with webform, but how do I integrate with CIVI Crm? My setup shares the database with D7, running on Xampp Aug 8, 2018 at 3:27

2 Answers 2


Webform with native conditionals fields works great. [SOLVED]


For a Civi-native solution, there's also the Profile Conditionals extension, but it's in a fairly early state. It's a bit tricky to configure, but works well once you do!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.