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) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • Usability Improvements (Moderator: Dave Greenberg) »
  • Making it easier (no code) to limit the Contact Reference List
Pages: [1]

Author Topic: Making it easier (no code) to limit the Contact Reference List  (Read 1566 times)

alfred_nutile

  • Ask me questions
  • ****
  • Posts: 464
  • Karma: 14
    • River Valley Tech Collective
Making it easier (no code) to limit the Contact Reference List
November 05, 2010, 11:19:42 am
when using a custom data field.
One option would be to have a 3rd select menu that lets you limit it to a Group.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Making it easier (no code) to limit the Contact Reference List
November 05, 2010, 02:55:13 pm
I think this would be a good / useful enhancement. Shouldn't be too difficult - altho I think it will require a schema change (to store the group ID in the custom field table). If you can investigate and submit a patch which adds this functionality (or hire someone to work this up) that would be excellent!
Protect your investment in CiviCRM by  becoming a Member!

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Making it easier (no code) to limit the Contact Reference List
November 06, 2010, 03:23:09 am
More powerful approach:

http://civicrm.org/blogs/xavier/how-customise-contact-reference-custom-field

My experience is that I need more often than not to filter by something else than group (eg. sub-type, tag, country...).

This being said, being able to store "somewhere" the param {group, tag...} without having to change the full template might be useful. eg. including a custom template (empty by default, easy to override without having to worry about upgrades) might be a good middle way ?

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

alfred_nutile

  • Ask me questions
  • ****
  • Posts: 464
  • Karma: 14
    • River Valley Tech Collective
Re: Making it easier (no code) to limit the Contact Reference List
November 19, 2010, 06:49:29 am
thanks this looks good.
Just wondering though if there are security risks if the person turns of JS?

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Making it easier (no code) to limit the Contact Reference List
November 19, 2010, 07:00:17 am
Hi,

If the person doesn't have js, the contact reference autocomplete won't work anyway.

(yes, I know, not good for the accessibility ;(

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • Usability Improvements (Moderator: Dave Greenberg) »
  • Making it easier (no code) to limit the Contact Reference List

This forum was archived on 2017-11-26.