Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
February 4, 2009, 10:00 am
rate this thread
How can I Add HTML_QuickForm Elements into HTML_Table "on the fly"?
I want build complex table forms so I need render "on the fly":
$form = new HTML_QuickForm('subscribeform');
$form->addElement('text', 'name', 'Name:', array('size' => 15,
'maxlength' => 255));
and not in the end like
So How can I render the elements "on the fly"?
- Sabine Dinis Blochberger
February 4, 2009, 11:05 am
Re: How can I Add HTML_QuickForm Elements into HTML_Table "on the fly"?
$form->display or $form->toHtml(); to render and display All my
form's elements I would like to render each element one by one and in
the end if is missing something (like hidden inputs) $form->display();
could generate these elements.
I remember read about this in some place (but I forget, I think is
HTML_QuickForm2) but probably I will need extend.
I am reading some Render classes in /QuickForm/Renderer I think could
be my solution.
But if someone can give me tip! better!