Hidden field in FormBuilder

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
jimmyb
Forum Members
Forum Members
Posts: 35
Joined: Wed Sep 20, 2006 12:40 pm

Hidden field in FormBuilder

Post 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
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Hidden field in FormBuilder

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
jimmyb
Forum Members
Forum Members
Posts: 35
Joined: Wed Sep 20, 2006 12:40 pm

Re: Hidden field in FormBuilder

Post 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
jimmyb
Forum Members
Forum Members
Posts: 35
Joined: Wed Sep 20, 2006 12:40 pm

Re: Hidden field in FormBuilder

Post 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?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Hidden field in FormBuilder

Post 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'}
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
jimmyb
Forum Members
Forum Members
Posts: 35
Joined: Wed Sep 20, 2006 12:40 pm

Re: Hidden field in FormBuilder

Post by jimmyb »

About the only variation that I didn't try!!

Many thanks again Calguy, works perfectly.
Post Reply

Return to “CMSMS Core”