I am trying to add email address as a required field for contacts. I have been able to add other fields such as First Name and Phone Number. However, email address is not working. If I do not enter an email address then it still saves without error.
Here is what I added to the custom editviewdefs.php for Contacts:
'lbl_email_addresses' =>
array (
0 =>
array (
0 =>
array (
'name' => 'email1',
'label' => 'LBL_EMAIL_ADDRESS',
'displayParams' =>
array (
'required' => true,
),
),
),
),
It shows up as a required field but still saves if blank. Can anyone help with how to make email address a required field? What file does sugar use to validate the email address for edit view on Contacts?
I am using SugarCRM CE 5.2.0c.
Thanks for your help!


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks