Client script to validate field: showError and prevent Save
Hi,
I am pretty new to Zoho CRM customization and I would like to know which is the best practise to use client script for field validation.
I developed a very simple function to validate "onChange" of a field. When the user enters an invalid value, the script displays an error message
- myfield.showError("This value is invalid");
and the user can see a red message just below the field. It works perfectly, but if the user saves the record, the invalid value is accepted.
Using client script, what is the best technique to prevent from saving the record when the field entered is invalid?
Thanks for your help,
Nadia
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
Zoho CRM Plus Resources
Zoho Books Resources
Zoho Subscriptions Resources
Zoho Projects Resources
Zoho Sprints Resources
Zoho Orchestly Resources
Zoho Creator Resources
Zoho WorkDrive Resources
Zoho Campaigns Resources
Zoho CRM Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.