Re: Change default value for standard field drop down
I just tested this in Sugar 5.5.1 and it is the same in Sugar 5.5.1. In Sugar 6, you will be able to modify default fields from within Studio, which will make this much easier. Here is an example of what I just did to test this out. My test was to make the Website field in the Accounts module be a required field. First thing I did was to create a new file (not to modify an existing file) in the following folder:
custom/Extension/modules/Accounts/Ext/Vardefs/
you can call the file anything that ends in .php. So I called mine websiteRequired.php. If that folder path doesn't exist, just create it. Inside of that file, just put the following:
<?php
$dictionary["Account"]["fields"]["website"]["required"] = true;
?>
Then run the rebuild extensions command. You said you got a blank screen when you tried to do that, which probably means you have a syntax error in one of the files in the custom/Extension/modules/*whatever*/Ext/Vardefs folder, but it could be in any module, not necessarily the one you are working on.
Eric Wikman
Sr Software Engineer
Epicom
Bookmarks