• Post Reply Bookmark Topic Watch Topic
  • New Topic

how do you write a validator that validates a field based on another field?

 
Khopkar Amarish
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anybody know how you write a validator that validates a field based on another field? What I have is a radio button and a text field. The radio button has 3 options let's say A, B and C. Only if the item B is selected, then I want to validate the text field based on some regular expression criteria.

Is there a way for me to write a Custom Validator to do this 'conditional' validation, or do I need to just do manual validation of the form?

Amarish
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!