Hello,
I need the following operation:
When the contact is saved with the “Customer” type, the following fields must be filled in:
- First name
- First name
- Email address
- Date of birth
Otherwise, an error is returned to indicate that the save could not take place.
So I think I need to add some custom javascript to check the fields before sending the form and to display a custom error message.
I’ve tried adding this code to custom/modules/Contacts/metadata/detailviewdefs.php :
array(
includes' => array(
array(
file' => 'modules/Contacts/ContactDetail.js'
)
),
But when I do a console.log nothing is displayed.
Do you have a solution for SuiteCRM 8 please?