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) »
  • Can I Disallow Certain Contact Types in Groups?
Pages: [1]

Author Topic: Can I Disallow Certain Contact Types in Groups?  (Read 328 times)

jeffmikels

  • I’m new here
  • *
  • Posts: 26
  • Karma: 0
Can I Disallow Certain Contact Types in Groups?
June 06, 2014, 07:23:02 am
I have a few groups that I want to make sure are used only for individuals; however, people in my organization keep accidentally putting households into those groups. Is there a way for me to disable certain contact types in certain groups?

I am not averse to code hacking if need be.

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Can I Disallow Certain Contact Types in Groups?
June 10, 2014, 12:47:28 am
Hi Jeff,
you would have to customize to do that, but it would not be too difficult. You could use a validateForm hook to validate the contact type for certain groups?
Check here for the validateForm hook: http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_validateForm
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Can I Disallow Certain Contact Types in Groups?

This forum was archived on 2017-11-26.