Re: reorder the elements of a quickform
| From: | Antoine | Date: | Wed, 06 Oct 2004 17:33:41 +0000 |
| Subject: | Re: reorder the elements of a quickform | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-14775@lists.php.net to get a copy of this message | ||
On Wed, 6 Oct 2004 14:35:05 +0200, mike <laurent.ludovic@free.fr> wrote:
> Hi!
>
> I would like reorder the elements of my quickform, here's my code : I have
> my database elements and I add some elements with addElement function, I
> would like that these elements are placed before.
Another one! I have been on this list for a couple of weeks and this
is already the second...
This is from a week or so ago...
Hi,
I use formbuilder for generate a quickform in function off my table. Then, I
add elements in the postgenerateform function with the addElement function.
The problem is that the elements that I add are always at the end of my
form. I would like that they are the first ones. When have I to do?
Thank you for advance
--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ReplyReply to allForwardInvite mike to Gmail
Justin Patrin
<papercrane@gmail.com> to mike, pear-general
More options Sep 30 (6 days ago)
You can do one of two things.
1) use the useForm funciton in the formBuilder
$do = DB_DataObject::factory('table');
$formBuilder = DB_DataObject_FormBuilder::create($do);
$form = new HTML_QuickForm();
$form->addElement('text', 'name');
$formBuilder->useForm($form);
$form =& $formBuilder->getForm();
2) use the patch for QuickForm that allows you to move elements that
Bertrand refused to apply http://pear.php.net/bugs/bug.php?id=1587
- Show quoted text -
On Thu, 30 Sep 2004 12:38:32 +0200, mike <laurent.ludovic@free.fr> wrote:
> Hi,
>
> I use formbuilder for generate a quickform in function off my table. Then, I
> add elements in the postgenerateform function with the addElement function.
> The problem is that the elements that I add are always at the end of my
> form. I would like that they are the first ones. When have I to do?
>
> Thank you for advance
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> !DSPAM:415be30d270362854484446!
>
>
--
paperCrane --Justin Patrin--
--
G System, The Evolving GUniverse - http://www.g-system.at