This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Validation

 
Nick Delauney
Ranch Hand
Posts: 43
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

I have a drop down list with several options and one text field. Depending on what is in my drop down list I need to validate the text field differently.

For example if I have "Stock" selected in the list, I should have letters in the textfield. If I have "Cash" selected in the list I should have numbers.

I looked at the validwhen validation of validator, but cannot see how to combine it with other validations.

Can anyone assist, thanks,
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic