Print Format Child Table Attachment

I have a child table Attachment Doctype with data type attach with field name attachment
i want to display all attachment from the table to print format i tried

{%- for item in doc.attachment -%}
			< img src="{{item("attachment")}}" >
		{%- endfor -%}

it doesn’t seem to work

try this,

{%- for item in doc.attachment -%}
	<img src={{ item.attachment }}>
{%- endfor -%}

you can also check print format help under print format record.

2 Likes

it works thanks