setDefaults of Group Element

From: Date: Mon, 26 Dec 2005 23:30:20 +0000
Subject: setDefaults of Group Element
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-22341@lists.php.net to get a copy of this message
How can I set the default value of an element within a group? I've got code that looks like this: $comGroup[] = &$HTML_QuickForm::createElement('select', 'State', 'State:', $STATES); $form->addGroup($comGroup, $groupName, NULL, ''); $form->setDefaults(array($groupName . '[State]' => 'CA'); I've also tried $form->setDefaults(array($groupName['State'] => 'CA); Neither have worked. Is what I want possible? Thanks, Chuck

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