I'm trying to pass FormBuilder values to an UDT for signing up users to a series of Newsletter list's depending of what they answer in the form (Checkboxes).
I've created a group of checkboxes in FormBuilder with values matching Newsletter list's ID's. Then in the UDT i catch the values and pass to NMS. Users do get added to NMS and to the mandatory list (value 1 in the array) and to the first value in the checkbox group. The problem is every other selected value in the checkbox group gets ignored.
So if an user have selected checkboxes 2 and 5, only checkbox 2 gets added to NMS.
Here i catch the checkbox group in the UDT:
Code: Select all
$list = '';
if (isset($params['list']))
$list = $params['list'];
$newslist = array(1,$list);
Code: Select all
$nms->AddUser($email, $newslist, $name);
Code: Select all
$newslist = array(1,2,5);