Hi, I am trying to specify my own validation message for inArray in a config file but I can't figure out how to do that.
elements.ref_gender.type = "radio" elements.ref_gender.options.label = "Gender:" elements.ref_gender.options.multiOptions.1 = "Male" elements.ref_gender.options.multiOptions.2 = "Female" I know that I can turn the validator off by elements.ref_gender.options.registerInArrayValidator=false but this is not what I would like to do. I would like to change the validation message from '' not in the haystack to 'Gender must be Male or Female'. something along the line of elements.ref_gender.options.validators.inarray.options.messages.notInArray = "Gender must be Male or Female!" or elements.ref_gender.options.inArrayValidator.options.messages.notInArray= "Gender must be Male or Female!" Thanks for the help. SWK -- View this message in context: http://www.nabble.com/InArray-validation-message-in-config-file-tp25732590p25732590.html Sent from the Zend Framework mailing list archive at Nabble.com.
