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 – Hassan Farooq Aug 6 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 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 – Bruno Vincent Aug 8 at 3:27

Webform with native conditionals fields works great. [SOLVED]

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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