Answers.Body: <p>The <a href="https://github.com/twomice/com.joineryhq.profcond" rel="nofollow noreferrer">Profile Conditionals</a> extension is intended to meet this need.  However, it doesn't have a user interface, so it requires some tech-savvy to deploy.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-31T03:14:34.090Z
Answers.LastActivityDate: 2018-12-31T03:14:34.090Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.Body: <p>Conditional filtering is not possible in CiviCRM but available on Drupal webform_civicrm. But not for complex scenario's like yours. However you can achieve what you want by writing a small extension and adding JS page on the form to perform selections and also you can use validateform civicrm hook to provide validation at server side.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-09-01T10:56:46.637Z
Answers.LastActivityDate: 2019-01-06T22:51:09.663Z
Answers.LastEditDate: 2019-01-06T22:51:09.663Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>For a civi event registration form, is there a way to select a radio button if one of 2 other fields has data? We want to require a security deposit if the person selects one of 2 other options on the form, but only if one of those 2 fields is selected/has data entered. Once it is selected, the user should not be able to deselect it, but the form should deselect the radio button if the user removes the options that caused the radio button to be selected. </p>
  
Tags: <civievent>
Title: How to automatically select a radio button?
ThreadText: # How to automatically select a radio button?
  
  (Asked by: username_0 on 2018-09-01)
  
  For a civi event registration form, is there a way to select a radio button if one of 2 other fields has data? We want to require a security deposit if the person selects one of 2 other options on the form, but only if one of those 2 fields is selected/has data entered. Once it is selected, the user should not be able to deselect it, but the form should deselect the radio button if the user removes the options that caused the radio button to be selected.
  
  **Tags:** civievent
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2018-12-31. Score: 2
  
  The [Profile Conditionals](https://github.com/twomice/com.joineryhq.profcond) extension is intended to meet this need. However, it doesn't have a user interface, so it requires some tech-savvy to deploy.
  
  
  ---
  
  ### Answer by username_2 on 2018-09-01. Score: 0
  
  Conditional filtering is not possible in CiviCRM but available on Drupal webform\_civicrm. But not for complex scenario's like yours. However you can achieve what you want by writing a small extension and adding JS page on the form to perform selections and also you can use validateform civicrm hook to provide validation at server side.
  
  
  ---
  
  