I have addded some custom validation code to my form. The code works and thats not the problem.
There is only one thing, when validation fails, it is still possible to submit the form.
The validation that comes with Chronoforms has some function build in that prevents submitting the form. For example when a field is required and it remains empty then it´s not possible to submit the form. Its not just that the button is disabled. The button is clickable but it does not submit.
Now I am wondering if I could utilise this funcion for my customer validation as well. This validation checks for forbidden expressions and could return anything that is necessary to trigger that built in function of Chronoforms and it would be great if the form just dont get submitted as well if the validation fails.
So how can I do that?
There is only one thing, when validation fails, it is still possible to submit the form.
The validation that comes with Chronoforms has some function build in that prevents submitting the form. For example when a field is required and it remains empty then it´s not possible to submit the form. Its not just that the button is disabled. The button is clickable but it does not submit.
Now I am wondering if I could utilise this funcion for my customer validation as well. This validation checks for forbidden expressions and could return anything that is necessary to trigger that built in function of Chronoforms and it would be great if the form just dont get submitted as well if the validation fails.
So how can I do that?