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'?
[SOLVED] formbuilder UDT action access parameters / fields
-
- Forum Members
- Posts: 85
- Joined: Wed Jun 20, 2007 5:40 pm
[SOLVED] formbuilder UDT action access parameters / fields
Last edited by essexboyracer on Tue Jan 12, 2010 6:28 pm, edited 1 time in total.
- goallblacks
- Forum Members
- Posts: 26
- Joined: Wed Sep 19, 2007 8:27 pm
Re: formbuilder UDT action access parameters / fields
"It's better to be a lion for a day than a sheep all your life". - unknown.
"Plenty of people miss their share of happiness, not because they never found it, but because they didn't stop to enjoy it." William Feather (1889-1981, Writer)
"Plenty of people miss their share of happiness, not because they never found it, but because they didn't stop to enjoy it." William Feather (1889-1981, Writer)
-
- Forum Members
- Posts: 85
- Joined: Wed Jun 20, 2007 5:40 pm
Re: formbuilder UDT action access parameters / fields
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?
*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?
- goallblacks
- Forum Members
- Posts: 26
- Joined: Wed Sep 19, 2007 8:27 pm
Re: formbuilder UDT action access parameters / fields
should work if you have set the names 'your_name', etc as aliases for the respective fields. Maybe there is something else wrong.$name = $params['your_name'];
$email = $params['your_email'];
$tel = $params['tel_number'];
$time = $params['preferred_time'];
$newsletter = $params['newsletter'];
"It's better to be a lion for a day than a sheep all your life". - unknown.
"Plenty of people miss their share of happiness, not because they never found it, but because they didn't stop to enjoy it." William Feather (1889-1981, Writer)
"Plenty of people miss their share of happiness, not because they never found it, but because they didn't stop to enjoy it." William Feather (1889-1981, Writer)
-
- Forum Members
- Posts: 85
- Joined: Wed Jun 20, 2007 5:40 pm
Re: formbuilder UDT action access parameters / fields
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/
EDIT: For those that are interested, the write up is available here http://berkhamsted-web-design.co.uk/201 ... de-simple/
Last edited by essexboyracer on Thu Jan 14, 2010 8:37 pm, edited 1 time in total.