Forum Discussion
QuickBaseCoachD
8 years agoQrew Captain
I think that this is my cleanest formuals to show an image on a form and control the size. I presume from your question that each record will have its own logo, but I may have assumed incorrectly and you in fact want the same logo in every form.
var text FileType = Right(ToText([file attachment2]),".");
If(Contains("jpg, jpeg, png",$FileType),
"<img src=" & URLRoot() & "up/" & Dbid() & "/a/r" & [Record ID#] & "/e282/v0' width='75' >")
In the example above Field ID 282 has the file attachment.
var text FileType = Right(ToText([file attachment2]),".");
If(Contains("jpg, jpeg, png",$FileType),
"<img src=" & URLRoot() & "up/" & Dbid() & "/a/r" & [Record ID#] & "/e282/v0' width='75' >")
In the example above Field ID 282 has the file attachment.
QuickBaseCoachD
8 years agoQrew Captain
OK,
if you load a file attachment somewhere where all employees have access that table, (even a new table in your app called logos), and then click the file attachment, it will render in the browser.
You can then simply put a text element on the form with this syntax
<img src=https://mycompany.quickbase.com/up/bbeevg2wq/g/rt/eh/va/Division9LogoSmall.jpg>
ie, take the url that you see when you click on that icon and then copy and paste it into the text element field on the form and wrap it with that <img src= and the closing >
enable html for that text box.
if you load a file attachment somewhere where all employees have access that table, (even a new table in your app called logos), and then click the file attachment, it will render in the browser.
You can then simply put a text element on the form with this syntax
<img src=https://mycompany.quickbase.com/up/bbeevg2wq/g/rt/eh/va/Division9LogoSmall.jpg>
ie, take the url that you see when you click on that icon and then copy and paste it into the text element field on the form and wrap it with that <img src= and the closing >
enable html for that text box.
- Hello,
I'm trying to add a logo to my form as well and here's what I put into a formula-text field.
<img src = https://cfkent.quickbase.com/up/bpvr9qpph/g/rb/eg/va/cfkent-logo-grey_02.png>;
I'm getting a syntax error. Please let me know what I'm doing wrong.
------------------------------
Howard Fu
------------------------------- MarkShnier__You6 years ago
Qrew Legend
Did you put that whole string in quotes?
------------------------------
Mark Shnier (YQC)
Your Quick Base Coach
http://www.QuickBaseCoach.com
markshnier2@gmail.com
------------------------------- AdamKeever16 years agoQrew CommanderMark is correct Howard, the URL string needs to be in quotes. If you want to limit the size of it you can use
height=100;"
orwidth=100;"
for example:<img src = "https://cfkent.quickbase.com/up/bpvr9qpph/g/rb/eg/va/cfkent-logo-grey_02.png" height=100;">
------------------------------
Adam Keever
------------------------------