Thanks for your reply. I was doing the same. It works for me as long as the second field is empty.
If the second field is not empty, then it passes the validwhen, and starts validating against the subsequent validators mentioned.
One solution is to blank out the second field when the first checkbox is checked, as we dont intend to validate the second field.
But the requirement is not to blank out the field. For instance, if the user changes his mind, we would like to keep whatever was entered.
I was hoping I can do this without writing a custom validator.
Joined: Feb 15, 2005
While the validWhen validator is handy, it's not solution for every possible validation scenario. It sounds like in order to meet all your requirements, you may have to create a custom validation rule.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com