Hide arbitrary block


I'm trying to get to grips with the above subject but cannot get it to work, even on a basic document I've created to test.
This is my template:

Name {{Name}}

Medical. {{Med.Desc1}:hide-block-if-empty}

{{Med.RoomNo1}} – {{Med.Desc1}} {{Med.Desc1}:hide-block-if-empty}

{{Med.RoomNo2}} – {{Med.Desc2}}

{{Med.RoomNo3}} – {{Med.Desc3}}

Some text

If I test with JSON submission of:
"HouseName": "LG",
"Name": "D",
"Med.Desc1": null

I get a Docx file with the follwing in it:

Name D

Medical. {{Med.Desc1}:hide-block-if-empty}

– {{Med.Desc1}:hide-block-if-empty}

I'm not sure what I'm missing here.
If Med.Desc1 is null I want to omit the lines Medical and -, but its also adding the {{Med.Desc1}:hide-block-if-empty}
Has anyone done this or something similar before?

Thanks for any info you can give.


For an update, I've also tried the example here word for word and I get the same problem.

Is it broken or is the guide wrong?



Hi @DKS77,

It seems that there is indeed an issue with the formatter. We'll check it and reply.

Best regards,
Plumsail team

This works as expected now. Thanks.

1 Like