Page 1 of 1
Hidden field in FormBuilder
Posted: Sun Jun 17, 2007 11:52 pm
by jimmyb
Hi
Is there a way to add a value to a hidden form field in FormBuilder? If not, how is the hidden field actually used in the module?
Many thanks
Re: Hidden field in FormBuilder
Posted: Mon Jun 18, 2007 1:54 am
by calguy1000
You can specify a value for the hidden field on the module tag, but the next version will allow you to specify a value for the field in the interface.
Re: Hidden field in FormBuilder
Posted: Mon Jun 18, 2007 11:55 am
by jimmyb
Sincere thanks as always for your reply Calguy
Can you please provide and example of what you mean. Had a play with the module tag but can't get the value to set.
Many thanks
Re: Hidden field in FormBuilder
Posted: Mon Jun 18, 2007 5:30 pm
by jimmyb
Where you refering to changing code in the actual module Calguy or just in the call to the module that is included on the page?
Were 'test' is the name I have given to the hidden field, I have tried all kinds of different variations eg.
Code: Select all
{cms_module module='FormBuilder' form='form1' test='testvalue'}
Am I on the right track?
Re: Hidden field in FormBuilder
Posted: Mon Jun 18, 2007 6:09 pm
by calguy1000
This is my fault, and I can't blame anybody else
to override the value of a field in formbuilder supply a paramter with the name value_ in the tag.
i.e: {cms_module module='FormBuilder' form='blah' value_whateverfield='myvalue'}
Re: Hidden field in FormBuilder
Posted: Mon Jun 18, 2007 10:26 pm
by jimmyb
About the only variation that I didn't try!!
Many thanks again Calguy, works perfectly.