8

Is there a way to create a CiviCRM form like this:

What would you like to eat at the event?

  • Falafel
  • Kebap
  • Other: ......................... <-- user can make a free entry here

As far as I can see, multiple choice fields in CiviCRM do not provide this functionality, or am I overlooking something? Any other ideas how to achieve this (or something similar)?

6

This has been a feature request from time-to-time, and would be a great one to submit to the Paid Issue Queue.

If you want to DIY a solution I'd suggest you create a simple textfield as your custom field, and then use jQuery to add some extra radios that hide and populate the field unless the "other" box is selected, then show the field.

  • If you do add this to the Paid Issue Queue please let me know as I have an interest in this subject as well. Thanks! – Andy Clark Aug 12 '15 at 13:47
1

If you are based upon Drupal, an easy way to make something similar is to use a Webform with 2 items and a "conditionnal" : if item1 = "other" then item2 is shown

0

You don't have an option for entering a user value in Core Civi so you have to write a javascript to populate a field and you should read the value using POST and write to the respective table (custom field)

You can achieve by creating a new extension with some hooks

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.