Skip to main content

I have a field in salesforce that shows an image. We’ve used the standard Red, Yellow, and Green flag images (they are .gifs); but recently, we’ve added 2 new image options to the field (they are .png’s). Now that we added these 2 new image options, the image just shows a broken image icon on skuid pages, but it looks fine in native SFDC (screenshots attached).


The formula for the field is below. I don’t think it’s an issue with the formula, I think it’s an issue with Skuid not accepting .png images, as it worked just fine with only the .gif images.


Anyone have any idea what I can do to fix this? Thank you for any help!


Formula Field

IMAGE(IF(CONTAINS(Onboarding_Healthscore_Flag__c,“img/samples/flag_red.gif”),“img/samples/flag_red.gif”,IF(CONTAINS(Onboarding_Healthscore_Flag__c,“img/samples/flag_yellow.gif”),“img/samples/flag_yellow.gif”,IF(CONTAINS(Onboarding_Healthscore_Flag__c,“img/samples/flag_green.gif”),“img/samples/flag_green.gif”,IF(CONTAINS(Onboarding_Healthscore_Flag__c,“img/msg_icons/error32.png”),“img/msg_icons/error32.png”,IF(CONTAINS(Onboarding_Healthscore_Flag__c,“img/msg_icons/confirm32.png”),“img/msg_icons/confirm32.png”,“”))))),“”,16,16)


Working in Native SFDC:


Not Working in Skuid:

I believe you’re seeing the alternate text displayed as " " or your image no longer works. The following formula works for me on the backend of salesforce (not a formula created in Skuid)

IMAGE(“https://www.komische-oper-berlin.de/en/favicon_16.png”;, “Alternate Text”, 16, 16)

Skuid shows the following .png image

1aab3df50c24e7457a9b5b2cc0e42fa9db4fab85.jpg

I’m running Skuid Version 11.0.5


You were absolutely right, it was an issue with my formula and it was showing the alternate text. Thank you!


I have a related question (I think). I have an image field in Salesforce that can (depending on the situation) display more than one image. In Skuid, all I see is the HTML when I try to display the field in a text box (with or without allowing HTML for the field) and when I try to use the Skuid Image component, I just get a broken image.

 

Here’s the HTML from the text field:

 

<img src="/servlet/servlet.FileDownload?file=015PM000000t2nZ" alt="Account Icon" border="0"/> <img src="/servlet/servlet.FileDownload?file=01538000002DI0u" alt="Account Icon" border="0"/><br>

 

Here’s the link from the broken image: 

Hiding this part of the URL]/apex/%3Cimg%20src=%22/servlet/servlet.FileDownload?file=015PM000000t2nZ%22%20alt=%22Account%20Icon%22%20border=%220%22/%3E%20%20%3Cimg%20src=%22/servlet/servlet.FileDownload?file=01538000002DI0u%22%20alt=%22Account%20Icon%22%20border=%220%22/%3E

 

I am running Edinburgh Update 1 (16.1.8.0)

 

What am I doing wrong?


Reply