Mark Hedges | 3 Nov 19:20
Favicon

Re: [FormBuilder] can't render form in TT2


On Thu, 2 Nov 2006, frank_coleman wrote:
> 
> Hi! I am trying to use FB with TT2. Rendering the form by 
> putting [% form.render %] in the template works, but the 
> following doesn't work

It sounds like you're directly assigning the constructed but 
unprepared form to a variable in your existing TT2 template.

If you want to use FB's TT2 feature, you have to use the 
'template' parameter to FB->new().  See the manual page.

If you already have a TT2 template rendering system in place and 
you're trying to drop in FB, you could use FB's template param 
and have a separate TT2 file just for the rendering of the form.  
In your normal (enclosing) template you say [% form.render %] 
and in your FB (interior) template you do the precise rendering 
according to the manual.

Or, I think you can assign your form variable to your template 
as $form->prepare() instead of just $form.

If that doesn't help, can you share your code?

Mark

_______________________________________________
FBusers mailing list
FBusers <at> formbuilder.org
(Continue reading)


Gmane