Re: db_dataobject_formbuilder and quickform hierselect
| From: | Markus Wolff | Date: | Tue, 04 Jan 2005 16:35:58 +0000 |
| Subject: | Re: db_dataobject_formbuilder and quickform hierselect | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-16589@lists.php.net to get a copy of this message | ||
Arne Gellhaus wrote:
Hi, i am trying to build a form with formbuilder and i would like to replace two fields by a hierselect quickform element. Has somebody done this already, or is it even possible with formbuilder out of the box?Hi Arne, this is not possible out of the box. You need to predefine this element using the fb_preDefElements array, like this (in your DataObject): function preGenerateForm(&$fb) {
$hierselect = HTML_QuickForm::createElement('hierselect',...);
$this->fb_preDefElements['nameOfMyField'] = $hierselect;
}
CU
Markus