I need to provide a custom client validation
Let's say I need to make sure the format is ###.###.##-## using mask validator
Then I need to get fields before dash (-) and after dash (-)
if the sum of numbers of the first block is 11
and the last 2 digits sum are 11
then return valid
otherwise return false.
I didn't want to use a server dmi validator for this as I am avoiding having to have server roundtrips
I need to extend com.smartgwt.client.widgets.form.validator.Validator
and make a custom class for my needs.
Cheers,
EJ
Let's say I need to make sure the format is ###.###.##-## using mask validator
Then I need to get fields before dash (-) and after dash (-)
if the sum of numbers of the first block is 11
and the last 2 digits sum are 11
then return valid
otherwise return false.
I didn't want to use a server dmi validator for this as I am avoiding having to have server roundtrips
I need to extend com.smartgwt.client.widgets.form.validator.Validator
and make a custom class for my needs.
Cheers,
EJ
Comment