17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1200 Views |
-
validation issue

9 January 2008 at 9:20pm
Hello,
Currently I'm building a site with silverstripe 2.1 that has lots of forms that need validation. The most of the formfields I can validate using the RequiredFields class, but I have some formelements that are only visible when the previous question is answered yes. Is it possible to create some validation that checks the previous question and when needed the validation is added?
Thanks for your help!
-
Re: validation issue

12 January 2008 at 1:52pm
hm your best bet is probably to subclass RequireFields and overload the javascript() method with your own client-side validation. unfortunately we can't directly append javascript event-handlers to a form-onsubmit because of the way our validator works.
| 1200 Views | ||
|
Page:
1
|
Go to Top |


