TCPDF Does not write checkbox group array values

coughlin 08 Mar, 2016
I have a form with several checkbox groups. The "handle arrays" is in place and the groups are named with the []. The values do show up as expected in an email. However, using an identical html template as the email, the PDF generated by TCPDF simply shows an empty space where the array values should be. Is there a solution for this?
GreyHead 08 Mar, 2016
Hi coughlin,

Is the Handle Arrays action before the TCPDF action?

Bob
coughlin 08 Mar, 2016
Attached is a screenshot of the current setup for the on submit section. We have tried several variations of the placement and ordering of the actions, including putting the handle arrays directly into the top level of "On Submit."
GreyHead 08 Mar, 2016
Hi Coughlin,

That looks good to me. I'll experiment here and see if I can see any reason why it isn't using the Comma Separated list.

Bob
GreyHead 09 Mar, 2016
Hi Coughlin,

I tested this and it appears to be working OK for me - see my test here

Best wishes

Bob
coughlin 09 Mar, 2016
Are you using a custom template for the PDF output or are you leaving that section blank? If it is custom, could you paste the code you are using? We did notice that if we leave the content section of TCPDF blank, the PDF is blank. Is that expected, or symptomatic of a problem?
GreyHead 09 Mar, 2016
Hi Coughlin,

You need to put 'something' in the TCPDF template to tell it what to output. In this case I added an Email action, saved the form then copied over the auto-generated Email template. You can add most HTML there using {input_name} where you want the form data included.

Bob
coughlin 09 Mar, 2016
It's working now, and I'm not sure why. Thank you for your help!
This topic is locked and no more replies can be posted.