Hi, I'm not completely sure whether I understand your problem correctly... Do you want to validate your form in general or do you want the validation to happen before the form is submitted to the server? In general you should have a look at Zend_Validate and especially at http://framework.zend.com/manual/en/zend.validate.set.html#zend.validate.set.in_array.basic which explains basic InArray validation. For an instant validation of your form elements you will end up using JavaScript. One way of implementing a client side validation of the form's data is to listen for the elements' change events (have a look at a JS framework like jQuery which will make such things much more easier - http://api.jquery.com/change/) and react appropriately with or without an error message. Another way which might be suitable for a more sophisticated validation is a server side validation which happens in the background using some Ajax communication. One advantage of this solution is that you can reuse the configuration of the validators you set up for the final input validation.
Regards, Paul -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/How-can-I-make-my-form-validate-my-drop-down-list-tp2957079p2965770.html Sent from the Zend Framework mailing list archive at Nabble.com.
