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
Access your files securely from anywhere
Zoho Developer Community
Deliver unforgettable customer experiences
Deliver unforgettable customer experiences
New to Zoho Marketing Plus?
Everything you need to run your marketing
New to Zoho Marketing Plus?
Everything you need to run your marketing
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
Zoho TeamInbox Resources
Zoho DataPrep Resources
Zoho CRM Plus Resources
Zoho Books Resources
Zoho Subscriptions Resources
Zoho Projects Resources
Zoho Sprints Resources
Qntrl Resources
Zoho Creator Resources
Zoho Campaigns Resources
Zoho CRM Resources
Zoho Show Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.