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) »
  • General Discussion (please no support requests here!) (Moderator: Michał Mach) »
  • how to set up custom field selectbox where the list take from group
Pages: [1]

Author Topic: how to set up custom field selectbox where the list take from group  (Read 361 times)

henro

  • I post occasionally
  • **
  • Posts: 115
  • Karma: -1
  • CiviCRM version: 4.5.0
  • CMS version: drupal
  • MySQL version: 4.2.7.1
  • PHP version: 5.2.0
how to set up custom field selectbox where the list take from group
March 02, 2015, 10:39:19 pm
i have 4 group in my site.
1. activity
2. Patient Care
3. Administrator
4. Food and Diet

each contact can only follow one group,
so i want to create a custom field where the list in that custom field take from those group(s).

i see default a field in civicrm contact, but it allow contact follow more one group


any one experienced for this case ?

thanks and best regards


ayduns

  • I post occasionally
  • **
  • Posts: 64
  • Karma: 6
    • Squiffle Consulting
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7
Re: how to set up custom field selectbox where the list take from group
March 03, 2015, 02:14:53 am
You could create a custom field with those 4 values and then create 4 smart groups based on that field.  Those with access to those admin screens need to know to change your custom field rather than add groups directly.

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: how to set up custom field selectbox where the list take from group
March 03, 2015, 03:05:32 am
i may be misunderstanding but if you want a form where visitors or admins can be forced to only add a contact to one out of 4 groups, you could do it on a webform and set the widget to be a radio button i believe
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

henro

  • I post occasionally
  • **
  • Posts: 115
  • Karma: -1
  • CiviCRM version: 4.5.0
  • CMS version: drupal
  • MySQL version: 4.2.7.1
  • PHP version: 5.2.0
Re: how to set up custom field selectbox where the list take from group
March 03, 2015, 03:12:18 am
thanks a lot ayduns and petednz

i will try your suggestion

regards

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • General Discussion (please no support requests here!) (Moderator: Michał Mach) »
  • how to set up custom field selectbox where the list take from group

This forum was archived on 2017-11-26.