Hi!,
I'm using conditional form validation as described in this topic:
http://www.chronoengine.com/forums.html?cont=posts&f=2&t=15812
got it all working, except one item: I have a date field which doesn't perform as it should.
The class required gets set and unset allright (I can check in the code), but for some reason, when the class required is set by the event handler, it does not do anything on submit. So, on submit, you are allowed to leave the field empty, totally disregarding the required class.
Leaving the event handler out and setting the required class from the start in the form does work however.
Does anyone know how to get around this?
Thanks, Nathalie
I'm using conditional form validation as described in this topic:
http://www.chronoengine.com/forums.html?cont=posts&f=2&t=15812
got it all working, except one item: I have a date field which doesn't perform as it should.
The class required gets set and unset allright (I can check in the code), but for some reason, when the class required is set by the event handler, it does not do anything on submit. So, on submit, you are allowed to leave the field empty, totally disregarding the required class.
Leaving the event handler out and setting the required class from the start in the form does work however.
Does anyone know how to get around this?
Thanks, Nathalie