I have a select list that I want to validate the user picked one of the values. The options in the select list are as follows:
option[0] value = "" label = "Please Select" option[1] value = "P" label = "Probation" option[2] value = "T" label = "Trial" option[3] value = " " label = "None"
option[1], option[2], or option[3] where option[3] is one blank are valid selections. I know that I can't use "required" because required will not except option[3] since it is blank. I tried using a mask of [ TP]. That worked for the JavaScript validation, but failed in the validate method of the ValidatorActionForm.
Any thoughts?
Make the value for "None" a non-empty string (maybe the word 'none'), and translate it in the action before passing it into your application core.
Joe
--
Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Imagine if every Thursday your shoes exploded if you tied them the usual way. This happens to us all the time with computers, and nobody thinks of complaining."
-- Jef Raskin
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]