Your ideas was kind of too advanced for my basic level.  But don't worry I
finally found my answer at this link after about 6 months of searching and
asking around.

http://www.zfforums.com/zend-framework-components-13/core-infrastructure-19/validating-select-form-element-notempty-required-true-4060.html


//__________________________________________________Peacocksuit.com

                $category = new Zend_Form_Element_Select('category');
                $category->setLabel('Category')
                                 ->setRequired(true);
                $category->addMultiOption('',"");

                $CatLIST = new Model_DbTable_Category();
                foreach ($CatLIST->fetchAll() as $CatID) {
                                $category->addMultiOption($CatID->id, 
$CatID->title);
                }

                //$category->setValue('2');
//__________________________________________________Peacocksuit.com


-- 
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/How-can-I-make-my-form-validate-my-drop-down-list-tp2957079p2965980.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to