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

Remove 'Do not trade' from Privacy options

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 'Do not trade' from Privacy options

When adding or editing an Individual, the 'Do not trade' checkbox within the Privacy section can be confusing to the user.

The checkbox is intended to be used by organisations who want to swap mailing list info, and provides a way of marking a contact as not being included in the lists that they swap. It was added at the request of a few organisations.

However, if your organisation doesn't plan to do any such swapping, you may want to remove the field to avoid confusion and to generally reduce page clutter.

To remove the option, edit CRM/Core/SelectValues.php, function privacy() , remove:

 " 'do_not_trade' => ts('Do not trade') "

(This removes the label)

To remove the checkbox, edit civicrm/CRM/Contact/Form/Edit.php, in buildCommunicationBlock(), remove:

 $privacy[] = HTML_QuickForm::createElement('advcheckbox', 'do_not_trade', null, $t['do_not_trade']);

These files are part of CiviCRM core, so when you upgrade versions your changes may be lost.

  • 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.