Forum Discussion
Is 7 in "e7" the field ID for "Attachment"?
I had trouble with getting the field to display the image at first, mostly because of the file name. This is how mine looks:
// _fid_24 = photo_attachment
If( Length([Photo Attachment]) > 0,
"<img class='img img-thumbnail' name='" & [Photo Attachment] & "'width='300px' src='" & URLRoot() & "up/" & Dbid() & "/a/r" & URLEncode([Record ID#]) & "/e24/v0/" & URLEncode([Photo Attachment]) & "' />",
"<img class='img img-thumbnail' name='default' width='300px' src='' />"
)
I have used this syntax in the past to have a clickable thumbnail which will open full size when clicked. replace e12 with exx where xx is the file attachment fid. Does this syntax wortk for you for both a thumbnail ands the full size click and the printing. if the printing does not work, then try looking for the print setting to enable background graphics (Chrome)
var text image= "<img src=" & URLRoot() & "up/" & Dbid() & "/a/r" & [Record ID#] & "/e12/v0' height='100' >";
var text URL= URLRoot() & "up/" & Dbid() & "/a/r" & [Record ID#] & "/e12/v0' target=_blank";
If([Team Member Picture]<>"",
"<a href=" & $URL & ">" & $Image & "</a>")