• Post Reply Bookmark Topic Watch Topic
  • New Topic

valid when

 
nachagoni rishi
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to validate a field only if the value of the other field in the form is "XYZ" otherwise it should ignore the validations applied.

How can i acheive this using validator frame work.
I know we can use valid,but not able to figure out how to apply it to my requirement.
 
nachagoni rishi
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For example i have 2 fields field1 and field 2.
Field1 should be validated only if the the value of field2 is "0216".
If field2 is not "0216 then it should not validate field1.
How can i acheive this using DynaValidatorForm.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!