function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Alex YorioAlex Yorio 

Use Display Text Screen Component to Display Image on Community

Hi,

I have a flow with several elements that use the Display Text screen component to pair text with an image that I have inserted.

When I look at these Flows in my org, I see the images properly displayed. When I log in to my Salesforce community, I see them as well; however, when a user with our community profile logs in, they do not see the images.

Is there a permission required for these images to display to a community user?

Here is an example of what I see:
User-added image
Here is what someone with the community profile sees:

User-added image
Best Answer chosen by Alex Yorio
SwethaSwetha (Salesforce Developers) 
HI Alex ,
I have checked with the Salesforce product development team and got a confirmation that the issue you are facing is currently a bug on which the team is actively working. I am coordinating internally to have a known issue created for the same.

Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful. Thank you

Thank you
Swetha Maddali
Senior Success Engineer (Tier 2)
Salesforce.com

All Answers

SwethaSwetha (Salesforce Developers) 
HI Alex,
The reason this happens is that your Community has a different domain than your salesforce instance. For example
Your instance: na12.salesforce.com
Your community: mycommunity.com/support

For these images to be available, the home page component needs to use the relative URL, including the name of your community page. For example

<img src="/support/resource/13237000/PortalLogo> - Replace "/support/" with the name of your community page. 

Related: https://help.salesforce.com/articleView?id=000336442&type=1&mode=1
 
Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful. Thank you
Alex YorioAlex Yorio
Thank you, Swetha! 

When I add these images via Display Text in flow, I am not required to create them as static resources. Once I click the image icon in the screenshot below, it takes me directly to my computer to upload my selected image.

User-added image

User-added image
SwethaSwetha (Salesforce Developers) 
Hi Alex, Thanks for the details. 

As per https://help.salesforce.com/articleView?id=networks_files_visibility_and_sharing.htm&type=5 can you check if its an issue with file visibility based on the user type of the community.

Related: https://developer.salesforce.com/forums/?id=9060G000000I60QQAS
 
Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful. Thank you
Alex YorioAlex Yorio
Hi Swetha,

I have confirmed that the image I add via the Display Text screen component is indeed automatically saved to Files.

Since I cannot add a standard community user to a public group, I created a separate library, shared the file to that library and shared access to the library with a test user, so this person would have access to see the file.

When I log in to my community as that test user to view the flow, the image is still broken, so that does not seem to have fixed my issue.
SwethaSwetha (Salesforce Developers) 
HI Alex,

I was able to replicate that "display text" containing the image added via rich text editor is not shown for guest users but the "display image" can be shown.
Link to the community: https://android123-developer-edition.gus.force.com/CustomerService/s/

Would adding the image as "display image" in the flow, feasible as a workaround for you while I troubleshoot this further.

Note: The image in the richtext editor is shown as Beta feature and might not work as expected.

See image :
User-added image
Thanks
SwethaSwetha (Salesforce Developers) 
HI Alex ,
I have checked with the Salesforce product development team and got a confirmation that the issue you are facing is currently a bug on which the team is actively working. I am coordinating internally to have a known issue created for the same.

Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful. Thank you

Thank you
Swetha Maddali
Senior Success Engineer (Tier 2)
Salesforce.com
This was selected as the best answer
Alex YorioAlex Yorio
Thank you, Swetha.

I also found that using a Constant variable to display images in the Display Text screen component does work for community users. Linking the steps I followed here (https://explorationsintosalesforce.wordpress.com/2015/06/23/displaying-images-in-visual-flow/) in case anyone has the same problem.
S_PS_P
Hi, 
Can anybody help me, if there is any workaround for this. 
I have added images via Display Text in screenflow, I am not required to create them as static resources. Once I click the image icon  it takes me directly to my computer to upload my selected image. As my user able to see the text and image both in different enviroment, but some of the user only see the icon of a broken image instead and text.
Alex YorioAlex Yorio
Have you tried the steps I posted above? Adding the images as a Constant variable worked for me. 

Here is what I did:

I also found that using a Constant variable to display images in the Display Text screen component does work for community users. Linking the steps I followed here (https://explorationsintosalesforce.wordpress.com/2015/06/23/displaying-images-in-visual-flow/) in case anyone has the same problem.