Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

radiobutton and Validwhen problem!

 
shah rah
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


The validation fires for YES and NO radiobutton click. I want the required error to be displayed if "NO" radiobutton is clicked and the textarea is empty. Pls guide me
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by shah rah:
I want the required error to be displayed if "NO" radiobutton is clicked and the textarea is empty.

In that case, the logic in the code you posted is faulty. When you specify a condition in a validwhen validation, you should be describing a scenario that is valid, not one that isn't valid. You therefore need to change your code to:

I also believe spaces are required around "or" so make that change as well.
[ February 28, 2007: Message edited by: Merrill Higginson ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic