Displaying an image in a calculation field from a link field
AnsweredHi,
I am wanting to display an image from a dropbox link into a calculation.
I have tried several ways to get the image to appear, but all I get is a small rectangle with the image alt name.
My code is as follows, is there an easier way to accomplish this?
var txt = String(@Dropbox Image)
var image = '';
if(@Assembly Name(s)==null){
""+@Part Name+" [N/A]\n"+image+"\n"+@Part Description
}
I've also tried
var image = '';
if(@Assembly Name(s)==null){
""+@Part Name+" [N/A]\n"+image+"\n"+@Part Description
}
And several other variations.
Please advise on what can be done to make this work.
Many thanks,
-
I have used markdown several times before and have never had any problems. However, when using it before, the url was directly placed into the bracket section.
My problem here is that I want to use another field, which is a link field. When I used this field into the calculation it is retrieving the field name (i.e. field0832475) and not the link to which I need.
-
Yes, the link is https://www.dropbox.com/s/00s9chngec1jytf/A_AQB_2.0_PRT2010002.jpg
-
As expected your url is not a direct link to the image, but to a Dropbox page (even if it ends with .jpg). That won't work. You need a link that only displays the image itself (and nothing else), like:

(I did right-click > Open image in a new tab)
Please sign in to leave a comment.
Comments
18 comments