Studio allows you to create new fields, but not modify the existing core fields. Also, not all attributes of a field can be set in Studio. This tutorial shows you how to set field attributes via code in the custom directory.
Let’s say you want to modify the Industry field in Accounts to 1) not display in the Mass Update form and 2) be required.
To do this, simply create the file custom\Extension\modules\Accounts\Ext\VarDefs\Exam ple.php, add the following code below, and run Admin->Repair->Quick Repair and Rebuild.
One note. It’s a little tricky packaging up these changes in a loadable module. You have to use the relationships part of the manifest file. Attached is a sample module that shows you how to do this. Take a look at the manfest file to see how to define these vardef changes.PHP Code:<?php
$dictionary['Account']['fields']['industry']['massupdate'] = false;
$dictionary['Account']['fields']['industry']['required'] = true;
?>


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks