Forum Discussion
MarkShnier__You
Qrew Legend
5 years agoYou can try this as a Rich text formula field,
var text FileType = Right(ToText([My file attachment field]),".");
If(Contains("jpg, jpeg, png",$FileType),
"<img src=" & URLRoot() & "up/" & Dbid() & "/a/r" & [Record ID#] & "/e282/v0' width='75' >")
Where 282 would be replaced with the field ID of the file attachment field.
Note that the user will need to have access to the images without logging in. I suggest checking the box on the file attachment field to allow access without logging in.
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------
var text FileType = Right(ToText([My file attachment field]),".");
If(Contains("jpg, jpeg, png",$FileType),
"<img src=" & URLRoot() & "up/" & Dbid() & "/a/r" & [Record ID#] & "/e282/v0' width='75' >")
Where 282 would be replaced with the field ID of the file attachment field.
Note that the user will need to have access to the images without logging in. I suggest checking the box on the file attachment field to allow access without logging in.
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------