HOWTO: Make custom fields auditable

sugarcrmdevelopers —  January 18, 2012 — Leave a comment

This one’s from an older forums post I came across:

I would like to add fields that are audited in my leads and contacts modules to track certain custom and standard fields in the “view change log”. What is the best way to do this?

This is a simple thing you can right in Studio. Just checkbox the ‘Audit’ option in the field preferences as shown below:

Or, if you want to make this change at the code level, you can add a vardef extension to the custom directory. So for example, to add a new field test_c in the Accounts module to the audited field list, add this into a new file named custom/Extension/modules/Accounts/Ext/Vardefs/test_c_audit.php


Afterwards, you’ll need to do a Quick Rebuild and Repair for the changes to take effect.

No Comments

Be the first to start the conversation!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s