Conditional Validator

I need a way to force selection of a dropdown value, but only if a flag is set. This is within the same form. Thanks!

You can check this thread Conditional Validation - #5 by enchev