how to display results from checkboxes in two different line

temp2011 03 Jun, 2011
Hi,
I am using Chronoforms version 3.2
I have checkbox with two values as A and B.
For this checkbox if both A and B options checked then in email template results are displayed as A,B(results are separated by commas.)
But I want to display A and B in two different lines.(I want to add line break)
But as these values are comming from for example {check5} etc.then how to divide values inside check5?
thanks
GreyHead 03 Jun, 2011
Hi temp2011,

Turn off the ChronoForms handle array results and do it manually.
<?php
$check5 = JRequest::getVar('check5', array(), 'post', 'array');
$check5 = implode("<br />", $check5);
JRequest::setVar('check5', $check5);
?>

Bob
temp2011 04 Jun, 2011
thanks
But there is no any option under tab auto generated code, to Turn off the ChronoForms handle array in version 3.2.
So How to turn off Chronoforms handle array in version 3.2?
also where to put code given by you?
thanks again.
GreyHead 04 Jun, 2011
Hi temp2011,

In ChronoForms v3.2 it is "ChronoForms handle my posted arrays", set this to 'No' on the form General tab.

My code goes in the OnSubmit Before Email box.

Bob
This topic is locked and no more replies can be posted.