Custom Validation


#1

Hi Team,

Can anyone explain how I can add custom validation function and use in rules

Suppose , I have two date field as startDate and endDate, i want to validate the range

How I can ???


#2

Hi @sudhiN,

You can create new rule by extending Validator.

Check this link to see how to do that


#3

Can you kindly show an example? Becuase the link in the docs “how to extend the validator” just points to the top of the web page. I have the validator setup but I have no idea how to attach it to the framework.