+ Start a Discussion
miha198206miha198206 

How to add images to flow screen in Flow Designer

Hello,

 

I have a few screens in my Visual Workflow and I would like to add images to some of the screens. I haven't found such capabilities. How can I achieve my goal?

 

Thanks,

Mikhail

Best Answer chosen by Admin (Salesforce Developers) 
RajaramRajaram

Yeah.. The Rich text editor on the screen element currently does not support img src tags.

However, the flow run-time interprets any text as HTML. So, you could store the html markup in a custom setting or any database record, fetch it in a variable and use that in the screen.

All Answers

RajaramRajaram

Yeah.. The Rich text editor on the screen element currently does not support img src tags.

However, the flow run-time interprets any text as HTML. So, you could store the html markup in a custom setting or any database record, fetch it in a variable and use that in the screen.

This was selected as the best answer
miha198206miha198206

Rajaram,

 

Thank you. It works fine.

 

I've added new Display Text field to Screen in plain text format and put img tag there.

prafffuprafffu

Hi Rajaram,

 

Could you please share syntax, how you are using image tag in flow and

one more question can we upload image dynamically in a flows.

ssousanssousan

YamunaYamuna
Could anyone let me know how we can add images to visual flow designer?
thinkdatathinkdata
@Rajaram  you seem to have struck a nerve :)  You say "store the html markup in a custom setting"  but how do you access a custom setting from a flow?
Scott Johnson 47Scott Johnson 47
This took a bit of searching, but I figured this one out.  I know it's an old question...
1) Upload your image as a static resource.  
2) In your flow, create a constant.  Data type = text, Value = <img src='/resource/Attach_File_Button' /> 
Replace Attach_File_Button with the name of the image you uploaded as a static resource.  
3) Add a Display Text field to yrou flow screen, Select the constant to display.  

You should now see the image on your flow screen
JoeyLenJoeyLen
Scott,
Thanks for the post.  Works perfect.
Joey
Lise-Marie DECLOUXLise-Marie DECLOUX
Hi,  I've tried to do it but i get an error message. My image is saved in a static resource. I've created a constant and added in the template text my constant but I get an error. Do you know why ?
Thanks
Scott Johnson 47Scott Johnson 47
Hmmm - I know it works.  Here are some screen shots.  Hopefully you can find the issue.  Double check the value in your static resource carefully. 

User-added imageUser-added imageUser-added image

 
Lise-Marie DECLOUXLise-Marie DECLOUX
Thanks Scott, i've done it already but ii doesn't worked. In fact i've created on the flow designer a text template. this is on the text template where i would like to add the image. I've tried many way :image static, document... but nothing work. Perhap i've miss a step somewhereelse. Any help will be really appreciate.
Thanks
Scott Johnson 47Scott Johnson 47
I'm not sure.
Can you post screenshots of the details of your static resource, you flow screen, and your constant?
Lise-Marie DECLOUXLise-Marie DECLOUX
Look at the post here : https://success.salesforce.com/answers?id=9063A000000l2Yi
I've saved screenshot. But i've used a document + variable on the flow + a process builder