Cédric Mourizard, the lead developer at SugarCRM partner Synolia, came across this library and found an easy way to use it for adding custom form validation to Sugar forms. You can do it yourself by following these easy steps..
- Step 1: Include underscoreJS and custom validation in your metadata so that it’s loaded in the page load.
- Step 2: Use _.wrap function to add your custom validation before the Sugar original check_form function which validates the form with Sugar rules
- Step 3: Do a Quick Repair & Rebuild to apply the changes
Thanks Cedric for this tip!