Answers.Body: <p>I both D7 and D8 you would use Conditionals to show/hide fields.
  Any field can be hidden/shown -&gt; here's an example of a checkbox which when checked shows First and Last Name</p>
  <p><a href="https://i.sstatic.net/Q9Sqw.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/Q9Sqw.png" alt="enter image description here" /></a>
  <a href="https://i.sstatic.net/19N4D.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/19N4D.png" alt="enter image description here" /></a>
  <a href="https://i.sstatic.net/dMk2d.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/dMk2d.png" alt="enter image description here" /></a>
  <a href="https://i.sstatic.net/6i6QN.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/6i6QN.png" alt="enter image description here" /></a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-10-17T20:11:01.577Z
Answers.Text: Thanks, Karin, but I am using Joomla. Is there not a function for this native to Civi? For instance, in a contribution form, if "Pay by check" and a payment processor is active two radio buttons appear. If payment processor is selected, the credit card fields appear. If 'Pay by check' is selected, the CC form disappears.
  
  Essentially, 'if x=1 show field' or 'if x=0 do not show field'
Answers.UserDisplayName: BruceW
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-10-17T20:17:26.233Z
Answers.Text: On Drupal a site builder can do - on Joomla you need a Developer. On Joomla you would probably have to copy the civicrm tpl and then make edits to edit (add checkbox and javascript).
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-10-17T20:17:45.513Z
Answers.Text: PS - question was originally labeled webform-civicrm; I've removed the label.
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-10-17T20:48:34.313Z
Answers.Text: Thanks, didn't know that tag was code for something specific.
Answers.UserDisplayName: BruceW
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-10-17T20:51:31.417Z
Answers.Text: No problem - it references webform-civicrm module.
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-10-17T21:02:19.363Z
Answers.Text: So, maybe if I give a more exact use-case: To choose Language Interpretation:  
    
  1. Field: Language Interpretation (Please choose)    Yes   No  
    
     
  If No, then nothing further, move to next step in process flow.  
  If Yes, then Preferred Language system field appears so that entry is amended to Contact record.
Answers.UserDisplayName: BruceW
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-10-18T21:45:15.707Z
Answers.Text: More clarity: So, maybe if I give a more exact use-case: To choose Language Interpretation: 
  Field: Language Interpretation (Please choose) Yes No 
  1. If No, then nothing further, move to next step in process flow. 
  2. If Yes, then Preferred Language system field (menu) appears to choose language and that entry is amended to Contact record.
Answers.UserDisplayName: BruceW
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-10-17T18:14:06.107Z
Answers.LastActivityDate: 2020-10-17T18:26:59.803Z
Answers.LastEditDate: 2020-10-17T18:26:59.803Z
Answers.UserDisplayName: KarinG - Semper IT
Body: <p>I need to have a checkbox or yes/no radio field that opens 'Preferred Language field when value=1 or affirmative choice. How is this done?</p>
  <p>A more exact use-case: To choose Language Interpretation:
  Custom Field: Language Interpretation (Please choose): Yes | No</p>
  <ol>
  <li>If No, then nothing further appears, move to next step in process flow.</li>
  <li>If Yes, then Preferred Language menu (system field) appears to choose language and that entry is amended to Contact record.</li>
  </ol>
  
Tags: <custom-fields>
Title: How to have one custom field open one or more other fields in a frontend form?
ThreadText: # How to have one custom field open one or more other fields in a frontend form?
  
  (Asked by: username_0 on 2020-10-17)
  
  I need to have a checkbox or yes/no radio field that opens 'Preferred Language field when value=1 or affirmative choice. How is this done?
  
  A more exact use-case: To choose Language Interpretation:
  Custom Field: Language Interpretation (Please choose): Yes | No
  
  1. If No, then nothing further appears, move to next step in process flow.
  2. If Yes, then Preferred Language menu (system field) appears to choose language and that entry is amended to Contact record.
  
  **Tags:** custom-fields
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-10-17. Score: 1
  
  I both D7 and D8 you would use Conditionals to show/hide fields.
  Any field can be hidden/shown -> here's an example of a checkbox which when checked shows First and Last Name
  
  [![enter image description here](https://i.sstatic.net/Q9Sqw.png)](https://i.sstatic.net/Q9Sqw.png)
  [![enter image description here](https://i.sstatic.net/19N4D.png)](https://i.sstatic.net/19N4D.png)
  [![enter image description here](https://i.sstatic.net/dMk2d.png)](https://i.sstatic.net/dMk2d.png)
  [![enter image description here](https://i.sstatic.net/6i6QN.png)](https://i.sstatic.net/6i6QN.png)
  
  > **Comments:**
  > **username_0**: Thanks, Karin, but I am using Joomla. Is there not a function for this native to Civi? For instance, in a contribution form, if "Pay by check" and a payment processor is active two radio buttons appear. If payment processor is selected, the credit card fields appear. If 'Pay by check' is selected, the CC form disappears.  Essentially, 'if x=1 show field' or 'if x=0 do not show field'  
  > **username_1**: On Drupal a site builder can do - on Joomla you need a Developer. On Joomla you would probably have to copy the civicrm tpl and then make edits to edit (add checkbox and javascript).  
  > **username_1**: PS - question was originally labeled webform-civicrm; I've removed the label.  
  > **username_0**: Thanks, didn't know that tag was code for something specific.  
  > **username_1**: No problem - it references webform-civicrm module.  
  > **username_0**: So, maybe if I give a more exact use-case: To choose Language Interpretation:      1. Field: Language Interpretation (Please choose)    Yes   No          If No, then nothing further, move to next step in process flow.   If Yes, then Preferred Language system field appears so that entry is amended to Contact record.  
  > **username_0**: More clarity: So, maybe if I give a more exact use-case: To choose Language Interpretation:  Field: Language Interpretation (Please choose) Yes No  1. If No, then nothing further, move to next step in process flow.  2. If Yes, then Preferred Language system field (menu) appears to choose language and that entry is amended to Contact record.  
  
  ---
  
  