Displaying an image in a calculation field from a link field

Answered

Comments

18 comments

  • Adrien BLAISE

    You need markdown to display images, like

    ![](http://public.url/image.jpg)

    You can even make it clickable.

    HTH.

    0
    Comment actions Permalink
  • Jemma Tansley

    I have the markdown, but i want the image to be displayed as an image, not as the link.

    0
    Comment actions Permalink
  • Adrien BLAISE

    I can't see any image markdown code in your post. Il your markdown is right, it Will display an image... (been using this dozens or time).

    0
    Comment actions Permalink
  • Adrien BLAISE

    I mean as long as you can see an image by itself in a browser tab, it will get displayed with the code above. Otherwise, it may be an issue with your Dropbox url (not linking the file directly).

    0
    Comment actions Permalink
  • Adrien BLAISE

    I suggest you post an example image url here it needed.

    0
    Comment actions Permalink
  • Jemma Tansley

    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.

    0
    Comment actions Permalink
  • Adrien BLAISE

    ¨`

    0
    Comment actions Permalink
  • Adrien BLAISE

    Ok ; maybe link fields return an array. Try adding .Join() after the field's token. See if that helps.

    0
    Comment actions Permalink
  • Jemma Tansley

    Adding the .join function does not change anything, it only then displays the extra text, and still the invalid rectangular image

    0
    Comment actions Permalink
  • Rainer Grabowski (FVM)

    Is it a public url to the image and do you have access?

    0
    Comment actions Permalink
  • Rainer Grabowski (FVM)

    Maybe you can paste your code here. Put 4 blank spaces in the beginng of each line, so it's dispalyed as code and the url won' t be active and we can see the complete code

    -1
    Comment actions Permalink
  • Jemma Tansley

    This is how the code currently is left:

    var image = '![Image part](@Dropbox Image)';
    if(@Assembly Name(s)==null){
    "**"+@Part Name+"**  [N/A]\n"+image+"\n"+@Part Description
    }
    else{
    "**"+@Part Name+"**  ["+@All of Assembly Name.join(", ")+"] "+"\n"+image+"\n"+@Part Description
    }
    
    0
    Comment actions Permalink
  • Adrien BLAISE

    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:

    ![](https://photos-2.dropbox.com/t/2/AAD-1iKMI6_ibh7Xv2_mR2qfh28hL2b96FzcSR-hfB-nTQ/12/119381271/jpeg/32x32/1/1436194800/0/2/A_AQB_2.0_PRT2010002.jpg/CJe69jggASACIAMgBCAFIAYgBygBKAI/Tl4aIZ8WoP7enppKsnZzK4Fg8TNyEjQEMdoyh_wUkSk?size=1024x768&size_mode=2)

    (I did right-click > Open image in a new tab)

    1
    Comment actions Permalink
  • Jemma Tansley

    If i paste the actual image url into the dropbox link, this still does not show the image for me within the calculation field.

    0
    Comment actions Permalink
  • Adrien BLAISE

    This works here:

    1
    Comment actions Permalink
  • Jemma Tansley

    found out what was wrong, missed out a square bracket. Thanks Adrien.

    0
    Comment actions Permalink
  • uchallenger25

    i am adding images from my dropbox but it is showing me "login" option in podio field instead of images.

     

     

    can anyone tell me what error i might be having? 

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk