Skip to main content
Question

Need assistance getting image to show when printing a record

  • December 26, 2024
  • 0 replies
  • 160 views

Forum|alt.badge.img+2

Created a form that has a file upload section. This section allows people to submit photos of themselves. This is used for Medical purposes, we need to print out records to include the uploaded image. 

Initially this worked as intended by displaying the picture when printing. Once this was officially put in production, it stopped displaying the image as intended.

the test record:

 

Print preview: 

The print preview used to show the uploaded image on the record but now its just the file name.

Mez
Forum|alt.badge.img+7
  • Quickbase Alumni
  • December 26, 2024

Mark has your solution within this post. One field for the file, another (rich text using '<img ... /> tag) to display it. 

https://community.quickbase.com/discussions/quickbase-discussions/thumbnail-pictures-refreshing-slowly/30113

 


Mez
Forum|alt.badge.img+7
  • Quickbase Alumni
  • December 30, 2024

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='' />"
)