Hide-block-if-empty Not Working

Hi,

The hide-block-if-empty for table cells is not working correctly. It works if there is no data but when the data is present, it shows the data along with JSON RAW DATA. This functionality was working fine until 10 days or so but suddenly started failing. I also used your sample template and added contacts.address and contacts.phoneNumber data to the json file but still no luck. Demos for DOCX templates — Plumsail Documents 1.0 documentation

Thanks,

SK

test.pdf (116.5 KB) conditionally-hide-blocks-template.docx (16.1 KB)
Sample JSON:
{
"companyName": "Plumsail",
"site": "http://plumsail.com",
"contacts": [
{
"address": "1 Carlson",
"phoneNumber": "999-999-9999"
}
],
"employees": [
{
"name": "Derek Clark",
"hireDate": "2012-04-21",
"department": "marketing"
},
{
"name": "Jessica Adams",
"hireDate": "2012-04-21",
"department": "sales"
},
{
"name": "Anil Mittal",
"hireDate": "2016-04-11",
"department": "development"
}
],
"employees2": [
{
"name": "Derek Clark",
"hireDate": "2012-04-21",
"department": "marketing"
},
{
"name": "Jessica Adams",
"hireDate": "2012-04-21T",
"department": "sales"
},
{
"name": "Anil Mittal",
"hireDate": "2016-04-11",
"department": "development"
}
]
}

Hello @skanade,

We replied in the support ticket SP20374

Best regards,
Petr
Plumsail team

Hi Petr, I'm interested to read your reply (support ticket SP20374).
Many thanks,
Samy

Hi @sbarmada,

The latest Documents release affected the hide-block logic and we rolled back the changes. Please retry the action and let me know if there are any issues.

Best regards,
Petr
Plumsail team

Hi @Petr
Thank you for your prompt action. Yes, it's working fine now.
Have a nice day,
Samy

1 Like