I am trying to inject a validation into the field for the check, what is the best way to do that?
I can see that my js checkValidyCommon function is called when the form gets submitted, is there a way to inject a validation item into the validationResults array at this point?
This was the code I copied for the check validity common
I could not get it to register my validator, so I added a standard 'requiredtext' validator from the umbraco backoffice, this caused it to fire the checkvalidity functions and I was able to perform my extra validation.
Custom validate function
One final question I think :)
I am trying to inject a validation into the field for the check, what is the best way to do that?
I can see that my js checkValidyCommon function is called when the form gets submitted, is there a way to inject a validation item into the validationResults array at this point?
This was the code I copied for the check validity common
I have a javascript function the returns a success/fail object with a message, is there anyway to get it into the pipeline
Bit busy right now, so I'll have to respond somewhat generically in the interest of time. Here are some resources you can refer to for inspiration:
If you are still having issues, let me know and I'll try to respond later in more detail.
Thanks, I will have a peruse, hopefully the links will trigger a few braincells into action.
sorted, thanks for the pointers.
Just to let you know I ended up cheating :D
I could not get it to register my validator, so I added a standard 'requiredtext' validator from the umbraco backoffice, this caused it to fire the checkvalidity functions and I was able to perform my extra validation.
I just could get this bit to work
It just never registered the custom validator, so not sure what I have missed, but working ok so happy with it for now.
is working on a reply...