This documentation relates to CiviCRM version 3.1. It's not maintained anymore.
Current version of documentation.

Search with No Content Types

Skip to end of metadata
Go to start of metadata

This page refers to outdated version of CiviCRM. Check current version of documentation.


Documentation Search


CiviCRM 3.1 Documentation

Support and Participation

Developer Resources


CiviCRM book!

Make sure to check out Understanding CiviCRM as well! You can also support this project by ordering a hard copy.

Is it possible to remove the dropdown box listing "-all contacts-", "Individuals", "Households", "Organizations" on the "Find Contacts" page? All my users will be students, so any option outside of "Individuals" won't yield any results.

Depending on who needs access to search for what purpose(s), you could either...

  • Create a CiviCRM Profile for your student/users to access for search. This search form would only expose fields you want people to be able to search on, and wouldn't include the contact type dropdown (it only searches on individuals in 1.3 as well). However, this is read-only access.
  • If your users need access to more of the 'back office' CiviCRM functionality (edit/insert contacts etc.), then you'll need to hack the Search template:
civicrm/templates/CRM/Contact/Form/Search/BasicCriteria.tpl

... and replace this row:

<td class="font-size12pt \| {$form.contact_type.label}</td><td> {$form.contact_type.html}</td>

with this one:

<td col="2 | <input name="contact_type" value="" type="hidden \|  &nbsp;</td>
Labels
  • None

Creative Commons License
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-Share Alike 3.0 United States Licence.