[Templates] Default values for Textarea field

Peter Sørensen maspsr at sdu.dk
Fri Feb 1 09:35:33 GMT 2008


 
Hi,

I'm quit new into using Template Toolkit. 
I'm using it along with Catalyst and FormBuilder

Everything works fine. I can acces the fields generated by
FormBuilder and put them whereever I like on my output
with TT.


I have a SELECT list with a preselected item and the data
for the preselected item should show up in a textarea field.

I've been wondering on how to do this. FormBuilder generates
a hash of fields, where I can access the textarea field like:

[% field = fb.field %]			# formbuilder stash_name = fb
[% field.subscribers.field %]


This will put the textarea on my form but empty. How do I put some
default values into this just using the TemplateToolkit?

regards


Peter Sorensen/University of Southern Denmark/e-mail: maspsr at sdu.dk



More information about the templates mailing list