We've built a form using WebForms and are using the Client Side Validation module for AJAX/jQuery validation.

One field on the form needs to only be mandatory if a certain country is selected in the drop down.

We've got as far as being able to customise the styling (the jQuery side of things) to hide/show the required field notice, but we can't seem to dynamically alter the validation rules that the module is working to.

How can we achieve this?

  • You cant do it with Client Side Validation module. It is not designed to that scenario. You need to do it with custom jQuery.
    – niksmac
    Commented Apr 17, 2012 at 4:39

1 Answer 1


You can always create a custom rule for Client Side Validation, check clientside_validation.api.js for instructions, but you'll need some coding experience, otherwise feel free to open a feature request and we'll see what we can do.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.