Page 1 of 1
[SOLVED] formbuilder UDT action access parameters / fields
Posted: Wed Aug 12, 2009 2:23 pm
by essexboyracer
Hi All,
I have a formbuilder form, which has an action of calling a UDT, I cant figure out how to access the fields from the form from within the UDT (I am trying to integrate the form into Campaign Monitor).
In addition can I get the form (or tag) to continue with the form action of 'emailing the results to set addresses'?
Re: formbuilder UDT action access parameters / fields
Posted: Mon Aug 17, 2009 4:47 am
by goallblacks
Re: formbuilder UDT action access parameters / fields
Posted: Mon Aug 17, 2009 9:40 am
by essexboyracer
Ok, so I have the UDT set as an field type...
*Call A User Defined Tag With the Form Results
And in my UDT, have at the top...
// tried with and without $_SESSION
$_SESSION['fbparams'] = $params;
$name = $params['your_name'];
$email = $params['your_email'];
$tel = $params['tel_number'];
$time = $params['preferred_time'];
$newsletter = $params['newsletter'];
But I still cannot access the field values. I found out the field names from the Submission Tamplate tab in the edit form area.
To answer my own question about continuing the form with another action, it will process the values by emailling the results to set addresses.
Any ideas anyone?
Re: formbuilder UDT action access parameters / fields
Posted: Mon Aug 17, 2009 10:15 pm
by goallblacks
$name = $params['your_name'];
$email = $params['your_email'];
$tel = $params['tel_number'];
$time = $params['preferred_time'];
$newsletter = $params['newsletter'];
should work if you have set the names 'your_name', etc as aliases for the respective fields. Maybe there is something else wrong.
Re: formbuilder UDT action access parameters / fields
Posted: Tue Jan 12, 2010 6:26 pm
by essexboyracer
I figured this one out in the end. Put the UDT at the beginning of the submission template in form builder. Works perfectly! I may do a write up of integrating campaign monitor API in CMSMS if anyone is interested? BTW this was on CMSMS version 1.5.1 San Juan.
EDIT: For those that are interested, the write up is available here
http://berkhamsted-web-design.co.uk/201 ... de-simple/