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) »
  • Question about Custom Data fields
Pages: [1]

Author Topic: Question about Custom Data fields  (Read 1148 times)

moondancerjen

  • I’m new here
  • *
  • Posts: 29
  • Karma: 1
Question about Custom Data fields
September 29, 2008, 08:43:11 am
Hi,
My client would like to add some "smart" data fields to their CiviCRM Contact profiles.  Here is what they want:

A Geographic Region field, where members have 5 options in a drop-down: Local, Regional, National, International, and Other

Then, based on what the member selects they would then have to enter one of the following fields:
Local (text field to enter their city, county, etc.)
Regional (multi-select of different U.S. regions)
National (multi-select of states
International (multi-select of continents)
Other (textfield so they can specify)

Is this possible with CiviCRM?  Any ideas on how I can achieve this?

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: Question about Custom Data fields
September 29, 2008, 10:09:25 am

you can potentially do this using template customization (http://wiki.civicrm.org/confluence/display/CRMDOC/Customize+Built-in+and+Profile+Screens) and some amount of javascript

I would create all the below as custom fields. Based on the selection for geographic region, the javascript can trigger and display the relevant other custom field.

You will need to have a pretty good idea of html and javascript to do so

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Question about Custom Data fields

This forum was archived on 2017-11-26.