[Templates] Change name of formbuilder field within TT

Peter Sørensen maspsr at sdu.dk
Thu Apr 17 07:02:42 BST 2008


Hi ,

I have a question related to formBuilder and TT.

In my formbuilder config file I have created a field like:

	nrelselect:
		name: nrselect
		type: select
		options: LT=<,GT=>,LE=<=,GE=>=,NE=!=,EQ===
		selectname: 0
		selectopt: 1



I can display the content of this field without problems like:

[%field = fb.field %]
[% field.nrelselect.field %]

But I would like to change the name of this field at runtime. I am aware that
I can create this by hand but would like to use the predefined formbuilder field.

I have tried to use [% field.nrelselect.name ='newname' %] but this does'nt
change the name when using :

[% field.nrelselect.field %]

How can I change what the field method believes to be the name?


Regards


Peter Sørensen/University of Southern Denmark/mail: maspsr at sdu.dk
		



More information about the templates mailing list