It can't works when I created a complex docx template with the docxCheckbox.
I created a docx file like this:
{{#docxList Extension}}{{Number}}.{{Name}}
{{Description}}{{#if (compare Type 1)}}
{{#docxList Answer}}{{Item}}{{/docxList}}
{{/if}}{{#if (compare Type 0)}}{{Answer}}
{{/if}}{{#if (compare Type 2)}}
{{#docxList Answer}}{{Item}}{{/docxList}}
{{/if}}
{{/docxList}}
simple data:
"Extension": [
{
"Answer": [
{
"Item": "Installerade Skydd",
"Checked": true
},
{
"Item": "Skyddsutrustning",
"Checked": true
},
{
"Item": "Belysning",
"Checked": true
}
],
"Number": 1,
"Type": 1,
"Name": "Skyddsanordningar:",
"Description": null
},
{
"Answer": [
{
"Item": "Bruksanvisning",
"Checked": true
},
{
"Item": "Varningsskyltar, märkning",
"Checked": true
},
{
"Item": "Varningsanordningar",
"Checked": false
},
{
"Item": "Särskild utbildning",
"Checked": false
}
],
"Number": 2,
"Type": 1,
"Name": "Information och varning:",
"Description": null
},
{
"Answer": [
{
"Item": "Manöverdon",
"Checked": false
},
{
"Item": "Nödstopp, Säkerhetsbrytare",
"Checked": false
},
{
"Item": "Styrsätt",
"Checked": false
}
],
"Number": 3,
"Type": 1,
"Name": "Manöver",
"Description": null
},
{
"Answer": [
{
"Item": "Stabilitet",
"Checked": false
},
{
"Item": "Rörliga delar",
"Checked": true
},
{
"Item": "Brott, lösa föremål",
"Checked": true
}
],
"Number": 4,
"Type": 1,
"Name": "Mekaniska risker",
"Description": null
},
{
"Answer": [
{
"Item": "Elektriska risker installationer",
"Checked": false
},
{
"Item": "Kopplingsutrustning",
"Checked": false
},
{
"Item": "EMC - emission",
"Checked": false
}
],
"Number": 5,
"Type": 1,
"Name": "Elektriska risker",
"Description": null
},
{
"Answer": "This is a simple text",
"Number": 7,
"Type": 0,
"Name": "Elektriska risker",
"Description": null
}
]
}
The result:

if I insert the docxCheckbox it will can't works, the docx template like this:
{{Description}}{{#if (compare Type 1)}}
{{#docxList Answer}}☐{{Item}}{{/docxList}}
{{/if}}{{#if (compare Type 0)}}{{Answer}}
{{/if}}{{#if (compare Type 2)}}
{{#docxList Answer}}{{Item}}{{/docxList}}
{{/if}}
{{/docxList}}
Is it may docx content format incorrect? how can I fix it?