How to show filed data blank on print preview

How to show filed data blank on print preview

thank you.

use this in your custom html for print format

{{ doc.field_name or '' }}

Example i have 1 doctype and 1 filed name on filed . Lable ID = Test and name = TestTT ?

Result {{ doc.field_name or ‘TestTT’ }}

thank you

{{ doc.TestTT or ''}}

thank you