Skip to main content
Question

Quickbase button that displays image

  • December 7, 2020
  • 0 replies
  • 89 views

Hello,

Is it possible to have a formula URL field that displays an image or a logo on the button? I feel like this could be achieved with Javascript somehow.

My code:
var text Image = [Procore Image];
var text URL =[Procore];
"<a href=" & $URL & ">" & $Image & "</a>"

Just displays the links.

Thanks!
#Buttons #javascript #Images
​​​

------------------------------
Mackenzie Phillips
------------------------------
This topic has been closed for replies.

MarkShnierYou
Forum|alt.badge.img+24
If you wanted to use an image from the QuickBase Library of Images then you can use this syntax

var text Image = "<img src= https://images.quickbase.com/si/24/211-check_all.png>;

var text URL = URLRoot() & "db/" & [_DBID_PATIENTS] & "?a=dr&rid=" & [Related Patient];


"<a href=" & $URL & ">" & $Image & "</a>"

But if you want to use you own image which is stored on a file path.  

var text Image =  "<img src=" & URLRoot() & "up/" & [_DBID_ of where the Image is stored]  & "/a/r" & [Record ID#] & "/e7/v0" & "\" width=\"50\">"

The 7 is her field ID# that holds the image.  You can adjust either the width or the height.


------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------