Page 1 of 1

Checkbox not checked in Output Document TCPDF

Posted: Thu Sep 23, 2021 2:21 pm
by erpbibico
Hello, I am currently having trouble displaying a checked Checkbox on the Output Document, I have found some topics but using Checkgroups instead of the Checkbox. Thank you in advance for your help.

Re: Checkbox not checked in Output Document TCPDF

Posted: Thu Sep 23, 2021 9:00 pm
by kirkwg
Hi there,

Reference link: https://wiki.processmaker.com/3.3/Output_Documents#Checkboxes_in_Output_Documents
Example screenshot attached FYI, good luck, cheers.

Ideas:
1/ Prepare the HTML doc for the output doc, say have a checkbox
2/ Insert a case variable along side with the checkbox html code
3/ Write a trigger and place this trigger before the step of generating output doc, in order to set the value of case var
4/The output doc should show with a checkbox checked

Re: Checkbox not checked in Output Document TCPDF

Posted: Fri Sep 24, 2021 11:18 am
by erpbibico
Hello, kirkwg thank you for your response,

I tried making my own process using the example provided by you, but I am still having trouble. I am not sure if it's the value on the HTML Output Doc or on the checkbox defined in the Dynaform.

Thank you again for you help.

Re: Checkbox not checked in Output Document TCPDF

Posted: Sun Sep 26, 2021 9:01 am
by kirkwg
It looks like there is a bug there in Processmaker:

<div><input type="checkbox" name="contactClient" value="contact" @#checking />Contact Client</div>
as it will interpreted as
<div><input type="checkbox" name="contactClient" value="contact" checking="" />Contact Client</div>

In the meantime, try don't use the checkbox in output doc , converted it the format as e.g.
chekcbox_1 = "true" or "false" //display like this in output doc

Re: Checkbox not checked in Output Document TCPDF

Posted: Mon Oct 04, 2021 8:14 pm
by kirkwg
there is a workaround for this issue. Let m eknow if you still wanna know. cheers.