Forum Discussion

MackenziePhilli's avatar
MackenziePhilli
Qrew Trainee
4 years ago

Quickbase button that displays image

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
------------------------------
  • 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 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
    ------------------------------
    • MarkShnier__You's avatar
      MarkShnier__You
      Icon for Qrew Legend rankQrew Legend
      .. that will be a Rich Text formula field...

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