I have a tpl that uses iw_include to include a second tpl. In the 1st TPL I pass checkbox values to the second tpl using $iw_param. In the second TPL I wish to display those values. I cannot get this to work. Only the first value in the checkbox list shows up when I preview the page. I am using TS 5.5.2 on WIndows.
Datacapture.cfg:
<item name="Event Participation">
<description></description>
<label>Event Participation</label>
<checkbox required="f">
<option label="Speaking" value="Speaking" />
<option label="Sponsoring" value="Sponsoring" />
<option label="Exhibiting" value="Exhibiting" />
<option label="Attending" value="Attending" />
</checkbox>
</item>
Parent TPL:
<iw_include pt='/includes/add_promotional.tpl'>
<![CDATA[
$iw_param{pEventParticipation} = iwpt_dcr_list('dcr.Promotional Module[0].EventParticipation');
]]>
</iw_include>
Component TPL:
]]>
<iw_perl>
my ($x,
@list);
@list = $iw_arg{pEventParticipation};
foreach $x (
@list){
iwpt_output("$x");
}
</iw_perl>
<![CDATA[