2

I have dropdown with option1, option2 ... Other. I want if user selects "Other" another text field appears (slideDown) underneath the dropdown AND this text field is Required. Is it possible with civiCRM?

2

This was proposed as a feature for CiviCRM, but it never really got any funding: 'Other' option for custom fields

As Ben says, if you are (or have access to) a developer, it's not too hard to write this extension. Add both the dropdown and the "Other" field to your profile, then use jQuery to hide the "Other" field. Toggle whether it's hidden based on the value of the dropdown.

Use hook_civicrm_validateForm to set "Other" as required if the dropdown value matches the "Other" option. By default it should not be required.

1

Not natively, although it would make a great extension.

-1

Are you using Drupal? If so I think webform will support this.

  • 1
    The question has a tag - "Wordpress". Is it possible with civiCRM/Wordpress ? – Stoycho Mar 6 '16 at 21:26

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.