Word - Template - Hide block if empty

Posted by: vincent.boyer.ucf on 4 October 2022, 6:28 pm EST

    • Post Options:
    • Link

    Posted 4 October 2022, 6:28 pm EST


    I’m keeping on testing your product and there is one another thing I don’t understand how it works.


    I have a block of shipping address.

    In this block, I have 5 lines (with 3 optional and linebreaker foreach line) + zip code + city

    With HBI-empty, if line 4 is empty, everything is hidden.

    I just want the line and the breaker hidden.

    How to do that ?

  • Posted 5 October 2022, 3:58 pm EST

    Hello Vincent,

    The HBI-empty hides the particular block in which it is used, as suggested on the given link:


    Can you please share your word template with some dummy data replicating the issue so that we can replicate the same issue at our end and assist you further accordingly?


    Prabhat Sharma.

  • Posted 5 October 2022, 5:45 pm EST - Updated 5 October 2022, 5:51 pm EST

    In word, create a table.

    In a cell

    The JSON :






    “RaisonSociale”:“FREE 1234”,

















    “LivTxtLigne1”:“1 NEW ADRESSE”,

    “LivTxtLigne2”:“2 NEW ADRESSE”,

    “LivTxtLigne3”:“3 NEW ADRESSE”,

    “LivTxtLigne4”:“4 NEW ADRESSE”,

    “LivTxtLigne5”:“5 NEW ADRESSE”,






    Result :

    result with HBI-Empty on ligne 4 or 5 :

    The cell is empty no data.

  • Posted 6 October 2022, 7:11 pm EST


    Thank you for reporting this issue. We too can observe the issue and escalate this to the development team for investigation. We will let you know as soon as we get any update on this from their end. [Internal Tracking ID: DOC-4670]


    Prabhat Sharma.

  • Posted 11 October 2022, 5:32 pm EST

    Hello Vincent,

    As per the developers, in the cell, the block is a whole row. It’s why hbi-empty works as it is working. As a workaround, you can place them on an invisible table containing a single cell so only this table/cell will be affected.

    Please find the attached modified sample for the same.


    Prabhat Sharma.


  • Posted 11 October 2022, 5:39 pm EST


    Thank you for the answer even if the solution is the one I’ve already applied for my test.

    But stil remain the issue of empty line when empty.

    I was hoping a better way to do this.

  • Posted 11 October 2022, 6:04 pm EST - Updated 11 October 2022, 6:09 pm EST

    Hello Vincent,

    Please confirm if your requirement is the same as shown in the attached image.

    If there is any other requirement then, please please explain your requirements with the help of some screenshots.


    Prabhat Sharma.

  • Posted 15 November 2022, 11:47 pm EST

    Yes it is the requirement. If a {{}} is empty so delete it and let the next block to move up.

    So the grey zone must be deleted or something :slight_smile:

  • Posted 16 November 2022, 10:30 pm EST


    We are discussing this requirement with the development team. Will get back to you once we have any update from them.



  • Posted 17 November 2022, 10:49 pm EST


    This requirement will possible to achieve in new 6.0 release. You have to wait till release.

    ETA for the new 6.0 release is next month.

    Best Regards,


  • Posted 11 January 2023, 10:07 pm EST


    This issue is resolved. Now you can use conditional templates to achieve this requirement.

    Please refer the modified attached sample for the same : JSON_DataBinding_Mod2.zip

    Best Regards,


Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels