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) »
  • Specific search profile for contact types
Pages: [1]

Author Topic: Specific search profile for contact types  (Read 672 times)

werner

  • I’m new here
  • *
  • Posts: 21
  • Karma: 0
  • CiviCRM version: 4.5
  • CMS version: Drupal 6
  • MySQL version: mySQL 5
  • PHP version: php5
Specific search profile for contact types
March 22, 2013, 02:33:43 am
Is it somehow possible to connect a search profile to a specific contact type?

So basically what I would like to have is the following scenario:

Create 3 Profiles used for Search: something like Search-Person, Search-Organisation & Search-Household.
If a user searches for a person then the profile Search-Person should be used automatically for the result table but if the user searches for an organisation then the Profile Search-Organisation should be used.

Any help you be great
werner

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: Specific search profile for contact types
March 22, 2013, 03:16:26 am
werner :

You have an option to search by profile in Advanced Search.

For more details, refer : http://book.civicrm.org/user/current/the-user-interface/searching/

HTH
-Yashodha
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

werner

  • I’m new here
  • *
  • Posts: 21
  • Karma: 0
  • CiviCRM version: 4.5
  • CMS version: Drupal 6
  • MySQL version: mySQL 5
  • PHP version: php5
Re: Specific search profile for contact types
March 22, 2013, 03:51:32 am
@Yashodha: I already know that and it works great for an advanced user but it would be great to have the connection automatically

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: Specific search profile for contact types
March 22, 2013, 08:22:45 am

I'm assuming u mean when the user picks a contact type or sub-type

you can probably do this via a jQuery snippet and basically add the "profile" field as a hidden field to the form in jQuery

so when a person selects organization, add a hidden field 'id' with value your profile ID for organization

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 Profiles (Moderator: Dave Greenberg) »
  • Specific search profile for contact types

This forum was archived on 2017-11-26.