dockerdocxjsreport

JsReport not rendering docxCheckbox


I have a Docker Image where jsReport is rendering a custom doxc file to a pdf. I have normal string values like firstname and lastname + some checkboxes depending on previous user input.

Evening works fine for the string values, but the checkboxes will not get rendered.

String values

Boolean values

After rendering, it looks like this:

String rendered

Boolean rendered

The data looks like this: { "customer": { "fullName": "John Doe", "birthDate": "10.10.1999", "companyRegistrationNumber": " / AB123456", "fullAddress": "Street 1234 B5", "email": "mail@support.com" }, "date": "11.09.2022", "ready": true }

It is rendering something, it even uses the "ready" value because it displays the same string as "true", but it is not displaying a checkbox


Solution

  • The docxCheckbox helper call needs to be placed in the title of the word checkbox.

    See the documentation https://jsreport.net/learn/docx#forms

    And the demo https://playground.jsreport.net/w/anon/DtnCaXMs

    https://jsreport.net/learn/docx#forms