Re: hierselect validation

From: Date: Sat, 01 Oct 2005 18:27:04 +0000
Subject: Re: hierselect validation
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-21188@lists.php.net to get a copy of this message
On 10/1/05, Julien Tschäppät <julien35@gmail.com> wrote: > 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'); > Does this happen only with the client (JS) code or also on the server? -- Justin Patrin

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