Forums

checkbox data display

hekla 26 Aug, 2021
My first steps with CF7

My question:

I have a checkbox with two values:



On the thank you page I use the tag {data:Kurstermine}. The data is displayed as:
["12.11.20 - 15.11.20 · Geheimnisse der Lebenslust","12.12.20 - 15.12.20 · Geheimnisse der Lebenslust"]
How can I get them in two lines, without brackets a quotation marks? Like:
12.11.20 - 15.11.20 · Geheimnisse der Lebenslust
12.12.20 - 15.12.20 · Geheimnisse der Lebenslust
or at least without brackets a quotation marks:
12.11.20 - 15.11.20 · Geheimnisse der Lebenslust, 12.12.20 - 15.12.20 · Geheimnisse der Lebenslust

Help would be appreciated. Thank you.
Eddi Bournell 29 Aug, 2021
Hallo hekla, versuch es mal damit: {data:kurstermine.0}<br>{data:kurstermine.1} .... und verrate mir bei Gelegenheit die Geheimnisse der Lebenslust.
Eddi
healyhatman 30 Aug, 2021
What you need to understand is that you're storing it as a JSON string which is why you have the brackets and quotations. Additionally you've named the field incorrectly: a multiselect field should have square brackets at the end.
kurstermine[]

Use
{data.ul:kurstermine}
or
{data.join[</br>]:kurstermine}
You need to login to be able to post a reply.