Skip to main content
Question

Clicking on Record Image Goes to Record Instead of Image

  • January 19, 2018
  • 0 replies
  • 36 views

Forum|alt.badge.img+6
I've created a way for the records in an embedded table to display a thumbnail of the image. If I click on thumbnail I've taken to the form view for that record, but once I'm on the form and I click on the thumbnail, I'm taken to the full-size image in my browser (Chrome centers the image and makes a black background for everything behind the image).

How can I make clicking on the thumbnail in the embedded report go directly to the full-size image?

Here's the code I'm using:

If([Type]="image",
"<a href=\"https://rael-letson.quickbase.com/up/"&; Dbid () & "/a/r"& 
[Record ID#] &"/e8/v0\" /> "&
 "<img src=\"https://rael-letson.quickbase.com/up/"&; Dbid () &"/a/r"& 
[Record ID#] &"/e8/v0\" height=\"200\"alt='' />" & "</a>"
,"")

Thank you!
This topic has been closed for replies.

  • Registered
  • April 1, 2018
Try using an 'onclick' rather than an href.

I believe right now, the option to 'drill down' the the actual record in the report is being used first.

But, if you us this format, it will even open in a small pop up window, so you can easily close it and keep working.

"<a onclick=\"var a=window.open('"&[URL for the file]&"', 'newwindow', 'width=700,height=600');\"><img height=\"28\" src=\"https://images.quickbase.com/si/48/014-view.png\"></a>";

Just replace the "URL" and the img src to match for your use.

(I've not done this exact thing, but it should work)


Matthew Neil - Product Specialist