I was asked to make an existing custom dropdown field mandatory (required). Checking the Required checkbox in studio had no effect on the field, because, I assume, it had already been created. (Running Repair Custom fields after checking the box had no effect.)
I made the following changes and it appear to be working:
In EditView.html I added the following: <span class="required">{APP.LBL_REQUIRED_SYMBOL}</span> , which now causes the required field red asterisk to appear in the edit screen.
In /opt/sugarcrm/cache/dynamic_fields/Opportunities/fields.php I changed: 'required_option' => 'required', (changed from 'optional' to 'required')
Is there anywhere else I should make a change to code? And is there any future impact that I should be aware of?


LinkBack URL
About LinkBacks
I was asked to make an existing custom dropdown field mandatory (required). Checking the Required checkbox in studio had no effect on the field, because, I assume, it had already been created. (Running Repair Custom fields after checking the box had no effect.)



Reply With Quote

Bookmarks