CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Text field for "Other" radio button option
Pages: [1]

Author Topic: Text field for "Other" radio button option  (Read 1556 times)

Wonder95

  • Guest
Text field for "Other" radio button option
January 21, 2008, 05:58:38 pm
In a profile, I have a custom field that is a set of radio buttons for a contact to choose an option during member registration.  The client would like to have the last option be "Other" (for an option that doesn't fit in the other defined choices), and a text field next to it so the contact can specify what "other" means.  That way they can see what options are being entered and can add it as another radio button if desired, and also possible see it in the profile.

Is it possible to do this out of the box with CiviCRM, or would that require some custom coding?

Thanks.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Text field for "Other" radio button option
January 21, 2008, 10:14:40 pm
No this is not possible by default, you will have to do some custom coding.

kurund
Found this reply helpful? Support CiviCRM

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Text field for "Other" radio button option
January 22, 2008, 02:49:43 pm
A decent "workaround" would be to have the "Other (specify below)" option in your radio button set, followed by an optional text field. You might also be able to create a custom template for that profile and add some client-side (javascript) validation - this is slightly more involved but much simpler than modifying the core profile code.

http://wiki.civicrm.org/confluence/display/CRMDOC/Customize+Built-in+and+Profile+Screens
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Text field for "Other" radio button option

This forum was archived on 2017-11-26.