problem with a group in the preGenerateForm function

From: Date: Wed, 15 Sep 2004 08:41:47 +0000
Subject: problem with a group in the preGenerateForm function
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-14537@lists.php.net to get a copy of this message
Hi, I would like to create a group in the preGenerateForm function. $group1[]=$el['aapc_lieulivcp'] = &HTML_QuickForm::createElement('text', 'aapc_lieulivcp',$this->fb_fieldLabels['aapc_lieulivcp']." : ", array('size' => 5)); $group1[]=$el['aapc_lieulivville'] = &HTML_QuickForm::createElement('text', 'aapc_lieulivville',$this->fb_fieldLabels['aapc_lieulivville']." : ", array('size' => 10)); $el['grLivraison'] = &HTML_QuickForm::createElement('group', '', '',$group1, '&nbsp&nbsp',0); The problem is that the elements fields are duplicated in the form, I have to use the removeelement function for displaying only once time element. In this example, fields aapc_lieulivcp and aapc_lieulivville are two times in the form. Thank you for advance.

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