Re: Re: problem with a group in the preGenerateForm function

From: Date: Wed, 15 Sep 2004 17:03:24 +0000
Subject: Re: Re: problem with a group in the preGenerateForm function
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-14540@lists.php.net to get a copy of this message
On Wed, 15 Sep 2004 10:58:37 +0200, mike <laurent.ludovic@free.fr> wrote: > Apparently it is necessary to use the variable fb_preDefGroups but how have > to we use it? > Glad you found it. Check out the docs: http://opensource.21st.de/tiki-index.php?page=Formbuilder+configuration+options#id10628 Main docs page is here: http://opensource.21st.de/tiki-index.php?page=Formbuilder+documentation > "Mike" <laurent.ludovic@free.fr> a écrit dans le message de news: > 20040915083947.30387.qmail@pb1.pair.com... > > > > 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. > -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin--

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