Is it possible in suitecrm 8.2.2 to make the Contacts Email address field required? I thought the before_save
hook might work but how can I cancel the saving process? And since I suppose the information from the contact form would be lost and in this instance of the CRM many custom fields have been added, I understand it would be better to validate it in the client. But how can I add this custom functionality in this version of suitecrm?
Maybe this is useful!
<?php
$dictionary['Account']['fields']['annual_revenue'] = array(
'name' => 'annual_revenue',
'vname' => 'LBL_ANNUAL_REVENUE',
'type' => 'varchar',
'len' => 100,
'comment' => 'Annual revenue for this company',
'merge_filter' => 'enabled',
'logic' => [
'required' => [
'key' => 'required',
'modes' => ['edit', 'create'],
'params' => [
'fieldDependencies' => [
'employees'
],
'activeOnFields' => [
'employees' => [
'10-50'
],
],
],
]
],
);
Thanks for answering. I’ll try