Answers.Body: <p>For a Civi-native solution, there's also the <a href="https://github.com/twomice/com.joineryhq.profcond" rel="nofollow noreferrer">Profile Conditionals</a> extension, but it's in a fairly early state.  It's a bit tricky to configure, but works well once you do!</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-11-10T20:42:04.863Z
Answers.LastActivityDate: 2018-11-10T20:42:04.863Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.Body: <p>Webform with native conditionals fields works great. [SOLVED]</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-10-11T02:00:04.853Z
Answers.LastActivityDate: 2018-10-11T02:00:04.853Z
Answers.UserDisplayName: Bruno  Vincent
Body: <p>I use CIVI 5.x and Drupal 7.</p>
  
  <p>I would like to have conditional fields, that display is certain conditions are met, for example:</p>
  
  <p>New Customer, IF group is business, show business address field, IF group is individual, show home address, etc..</p>
  
  <p>Same behavior as Drupal conditional fields basically</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-08-06T15:11:31.233Z
Comments.Text: 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
Comments.UserDisplayName: Hassan Farooq
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-08-07T22:34:12.833Z
Comments.Text: have you considered doing whatever you need via civicrm_webform which then gives you Webform Conditionals to play with
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-08-08T03:27:48.477Z
Comments.Text: 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
Comments.UserDisplayName: Bruno  Vincent
Tags: <fields>
Title: Is there a way to have conditional fields like in Drupal 7?
ThreadText: # Is there a way to have conditional fields like in Drupal 7?
  
  (Asked by: username_0 on 2018-08-06)
  
  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
  
  **Tags:** fields
  
  > **Comments:**
  > **username_1**: 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  
  > **username_2**: have you considered doing whatever you need via civicrm_webform which then gives you Webform Conditionals to play with  
  > **username_0**: 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  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2018-10-11. Score: 3 | Accepted answer
  
  Webform with native conditionals fields works great. [SOLVED]
  
  
  ---
  
  ### Answer by username_3 on 2018-11-10. Score: 1
  
  For a Civi-native solution, there's also the [Profile Conditionals](https://github.com/twomice/com.joineryhq.profcond) extension, but it's in a fairly early state. It's a bit tricky to configure, but works well once you do!
  
  
  ---
  
  