hierselect validation

From: Date: Sat, 01 Oct 2005 18:19:10 +0000
Subject: hierselect validation
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-21187@lists.php.net to get a copy of this message
Hi, I try to add a validation rule to an hierselect element but that doesn't work. The error message is displayed if the first element is not selected but not for the second code : $myElement =& $form->addElement('hierselect','myelement', 'My Element : '); $myElement->setOptions(array($data1, $data2)); $form->addGroupRule('myelement', 'message', 'required', null, 2, 'client'); Thanks in advance Julien

« previous php.pear.general (#21187) next »