Hey guys,
So I went to this article >
http://www.chronoengine.com/faqs/54-cfv4/cfv4-validation/2656-how-can-i-add-a-custom-client-side-validation.html
Did everything as asked.
But the validation doesn't seem to be working..
The javascript it's loading (first in the onload)
(the regex formula is for a dutch mobile number).
It doesn't trow me an error when I'm filling something else than that number in.. Which of course it should. Am I doing something wrong?
This is the page! Hope you can help me
https://www.independent-duinrand.nl/index.php?option=com_chronoforms5&chronoform=Machtigingsformulier
So I went to this article >
http://www.chronoengine.com/faqs/54-cfv4/cfv4-validation/2656-how-can-i-add-a-custom-client-side-validation.html
Did everything as asked.
But the validation doesn't seem to be working..
The javascript it's loading (first in the onload)
function customCheck(el){
if ( !el.val().match(/^\+316\d{8}$/) ) {
return false;
} else {
return true;
}
}
(the regex formula is for a dutch mobile number).
It doesn't trow me an error when I'm filling something else than that number in.. Which of course it should. Am I doing something wrong?
This is the page! Hope you can help me
https://www.independent-duinrand.nl/index.php?option=com_chronoforms5&chronoform=Machtigingsformulier