Passing variables via URL to 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
tosd
Forum Members
Forum Members
Posts: 52
Joined: Thu Jan 11, 2007 1:02 am

Passing variables via URL to Formbuilder

Post by tosd »

I have read and experimented with anything I could find to do with passing variables to Formbuilder via a URL but I just can't seem to get it. I have coded a selflink to produce the following URL:

http://www.mysite.com.au/index.php?page ... ge=gourmet

... and I am calling Formbuilder with the following:

{cms_module module='FormBuilder' form='b_tempted' value_fld45=$smarty.get.package value_fld38=$feu_firstname}

The $feu_firstname variable is derived from a UDT that extracts the data from the Front End Users module and that is correctly passing to a hidden field in my Formbuilder form. No problem. The $smarty.get.package hook though is not working.

I also tried putting the following into a UDT:

$package = $_GET['package'];
$smarty->assign('package',$package);

When I insert {package} into the pages template it correctly prints out 'gourmet', but I cannot transfer $package to Formbuilder using:

{cms_module module='FormBuilder' form='b_tempted' value_fld45=$package value_fld38=$feu_firstname}


If anyone could help with this I would be very grateful. I am using the current version of CMS Made Simple and Formbuilder. 
Last edited by tosd on Fri Apr 04, 2008 10:08 pm, edited 1 time in total.
Post Reply

Return to “CMSMS Core”