Skip to main content
Question

Displaying QR Code Attachments on Forms

  • May 12, 2025
  • 0 replies
  • 79 views

Forum|alt.badge.img+3

Hello!

I'm trying to set it up so a user can upload QR Code images to a file attachment field and then have that QR Code display on a invoice form. However, while I can set the attachment field to display the image of the QR code on the form, when I go to print the form it instead displays it as the .png file name.

Is there some way I can get a file attachment field to display as an image when printing a form, or is there a better way to go about this?

Thank you in advance!

MarkShnierYou
Forum|alt.badge.img+24

Try this syntax as a formula Rich Text field.  It should defeat the known image caching issue that Quickbase has as long as the file name changes if the user uploads a new file to replace one they just uploaded.

"<img src=" & URLRoot() & "up/" & Dbid()
& "/g/r" & QB32Encode([Record ID#])
& "/e" & QB32Encode(12) // 12 is the fid of the file attachment field
& "/va/" & URLEncode([Picture]) // my file field is called [picture]
& " width=30>" // adjust the width or alternatively use the parameter "height=30 .... instead