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 Profiles (Moderator: Dave Greenberg) »
  • Select or Other custom field requirement / suggestion
Pages: [1]

Author Topic: Select or Other custom field requirement / suggestion  (Read 987 times)

jimyhuang

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 3
Select or Other custom field requirement / suggestion
April 02, 2012, 03:32:05 am
I found related thread about conditional field, but I think create new one is better.

A requirement like drupal cck module select or other ( http://drupal.org/project/select_or_other ), but need to implement in civicrm custom field or profile.

My question is:

1. Do anyone plan for this feature of CiviCRM custom field before?
2. If any, suggestion of database structure?
3. Current plan is implement a "relation" between different CiviCRM custom field (in the same custom field group). After define the relation, then secondary field will show only when user select a defined option in primary field. I'm not sure if this is a solution, or will conflict custom field design.


related thread:
http://forum.civicrm.org/index.php?topic=11727.0

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Select or Other custom field requirement / suggestion
April 02, 2012, 06:32:08 am

1. Yes but no one has designed or implemented it :(

2. I would say the user should decide the type of both fields, so u can have:

a. A select followed by a text box for certain options

b. A select followed by another select box wiht different options for different values in the first select

3. Your solution is a good start :)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Select or Other custom field requirement / suggestion
July 05, 2012, 09:56:40 am
Another option here would be to set it up as a textfield in Civi (so it will accept any input), then use Webform Integration to generate your form, which has a select/other widget.
Try asking your question on the new CiviCRM help site.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Select or Other custom field requirement / suggestion

This forum was archived on 2017-11-26.