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.

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 enter image description here enter image description here enter image description here

  • 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' – BruceW Oct 17 '20 at 20:11
  • 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). – KarinG - Semper IT Oct 17 '20 at 20:17
  • PS - question was originally labeled webform-civicrm; I've removed the label. – KarinG - Semper IT Oct 17 '20 at 20:17
  • Thanks, didn't know that tag was code for something specific. – BruceW Oct 17 '20 at 20:48
  • No problem - it references webform-civicrm module. – KarinG - Semper IT Oct 17 '20 at 20:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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