Output checkboxes values

Output checkbox values without brackets and quotes in ChronoForms emails.

Overview

The problem occurs because CF outputs checkbox array values with JSON formatting, including brackets and quotation marks.
Use the {data.join[, ]:field_name} syntax in your email template to join multiple checkbox values with a comma and space.

Answered
ChronoForms v6
th thebatik 08 Dec, 2018
Hi,
I have a checkboxes group to multiple choices.
In email template I use - {data:cr_checkboxes14[]}

When I received email I see like this: ["Ads on vechile","Indoor Ads"]

How I can output values without any signs, like this: Ads on vechile, Indoor Ads ?

Thanks
Yury
he healyhatman 08 Dec, 2018
Answer
2 Likes
Two ways.
{data.join[, ]:cr_checkboxes14}
Or
<?php echo implode(", ", $this->data("cr_checkboxes14, "")); ?>


Don't copy+paste code from the forums.
th thebatik 09 Dec, 2018
Thanks so much, first way is the solution!
This topic is locked and no more replies can be posted.