QF group required rule on Date element

From: Date: Tue, 06 Jan 2004 10:43:48 +0000
Subject: QF group required rule on Date element
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-9979@lists.php.net to get a copy of this message
Hi, I have a group of two elements. One of these elements is the Date element. I wanted to make the date element (all three select menus) required within this group. Simply doing the usual... $this->addGroupRule('eventDateGroup', $language['L_RequireDate'], 'required', null, 1, 'client', false); This Doesn't work. The rule always equates to invalid. I'm not sure if this is because the 'Date' element itself is a group of select elements. I then tried to apply a group rule to a group rule... $this->addGroupRule('eventDateGroup', array( 'eventDate' => array( array($language['L_RequireDate'], 'required', null, 'client') )), null, null, 1, 'client', false); This causes Javascript errors because, I think, of how the variable name is created - something like... eventDateGroup[eventDate]Elements Does anybody have a suggestion on how to do this? Should I give up - if it is not possible? Regards, -- Mike Carter ________________________________________________________________________ This email has been scanned for all viruses by the MessageLabs Email Security System. For more information on a proactive email security service working around the clock, around the globe, visit http://www.messagelabs.com ________________________________________________________________________

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