Christoph
Christoph

Reputation: 446

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": "[email protected]" }, "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

Upvotes: 0

Views: 109

Answers (2)

Christoph
Christoph

Reputation: 446

The property menu is not available with the right-click menu. It is only in the developers tab

Menu

Upvotes: 0

Jan Blaha
Jan Blaha

Reputation: 3095

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

Upvotes: 2

Related Questions