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

Remove Open ID and Instant Messenger from New Individual form

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.

Remove Open ID and Instant Messenger from New Individual form

On the 'new individual' form, you may want to remove the Instant Messenger and/or OpenID fields. If your organisation isn't storing this information you may want to remove the fields from display to reduce clutter and simplify the experience for your CRM users.

In CiviCRM 2.0.6, you can do this by editing the following file:
/sites/all/modules/civicrm/CRM/Contact/Form/Location.php

Comment out lines 105 and 106, which relate to building the openID and instant messenger fields. The if block should look like this after you've commented it out:

if ( ! $locationCompoments ) {
                CRM_Contact_Form_Phone::buildPhoneBlock   ($form, $location, $locationId, self::BLOCKS); 
                CRM_Contact_Form_Email::buildEmailBlock   ($form, $location, $locationId, self::BLOCKS); 
                //CRM_Contact_Form_IM::buildIMBlock         ($form, $location, $locationId, self::BLOCKS); 
               // CRM_Contact_Form_OpenID::buildOpenIDBlock ($form, $location, $locationId, self::BLOCKS);
} 

Save and then login to CiviCRM and test the change by going to the New Individual form.
Because this is a core CiviCRM file, your changes may be lost when you upgrade CiviCRM.

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.