Print empty column in print format

Hi Everyone,

In print format, we have a requirement to display an empty column in item table. But the column doesn’t appear in the print format if the value is null. Any solution for this?


Try HTML Jinja formating.

      {{ doc.field }}<br>

Thanks for your response!

But is there a way to do without Jinja formatting?

Use if statement in jinja
Eg1: {% if doc.coloumn_you_need_to_check %} <td> Value </td> {% endif %}
Eg2: <td> {% if doc.coloumn_you_need_to_check %} doc.coloumn_you_need_to_check {% endif %} </td>
Check Print format “Encounter Print” to know more about the usage of if in table.