Re: Form_Builder: how do you add a 'static' QuickForm element?
| From: | Justin Patrin | Date: | Fri, 07 Jan 2005 01:19:10 +0000 |
| Subject: | Re: Form_Builder: how do you add a 'static' QuickForm element? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-16758@lists.php.net to get a copy of this message | ||
On Thu, 6 Jan 2005 14:23:45 -0800 (PST), l Burnerheimerton
<lburnerheimerton@yahoo.com> wrote:
> I can't get it to work in preDefElements because it's not one.
preDefElements is only to replace an auto-generated element with one
of yoru own. To add an element to the form, create it in
postGenerateForm and use HTML_QuickForm's insertElementBefore().
>
> Whatever the code format, I assume should work for header, hidden elements not in your database
> fields list, html, image, or anything that is not in the predefined list of fields DataObject
> generated.
>
> Thanks for any help.
>
--
Justin Patrin