Hi, I’m very new to developing with SuiteCRM8 (v8.7.1) and I’m having an issue with some front end validation. I can’t work out where to change it.
In the Contact module, when creating a new contact, the email field validation does not allow apostrophes. This is an issue as this should be a valid character in an email address.
I can’t for the life of me find where to change the validation rules?
I’ve followed the instructions on the video to create an override for that UI config. Php looks as follows (the regex now allows the apostrophe on the left side):
This file is located at extensions/defaultExt/config/services/ui/ui.php
However, even after a repair & rebuild and running cache:clear via console it hasn’t made any difference at all to that email field on the create Contact form, it’s still using the old validation.
As a test I made the regex change directly to the YAML file in config/services/ui/ui.yaml and this DID work. So for some reason my override isn’t getting applied, any idea why?