Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
blewis60
Contributor II
Contributor II

Conditionally Display Image

I have 3 images that correspond to fields in my table.

For example a customer service image that I want to display if CustomerService field = "yes'...and two other similar scenarios.

I need to be able to have a text box that contains the image that I can conditionally display/hide or some other chart type with that capability.

Does anyone know of a way to accomplish this?

8 Replies
felipedl
Partner - Specialist III
Partner - Specialist III

blewis60
Contributor II
Contributor II
Author

Sorry I should have specified that I am using Qlik Sense.

felipedl
Partner - Specialist III
Partner - Specialist III

blewis60
Contributor II
Contributor II
Author

I see where a background image can be selected, but I do not know how to conditionally display it based on a field.

blewis60
Contributor II
Contributor II
Author

Anyone else have any thoughts on how to accomplish this in Qlik Sense?

RiyaHegde
Contributor
Contributor

Can I display an image inside a text & image chart in Qliksense based on a condition?

for Eg : if country is selected as India in the filter then show India flag in the box else if country is selected as US in the filter then show US flag

lorenzoconforti
Specialist II
Specialist II

"Can I display an image inside a text & image chart in Qliksense based on a condition?" - Not to my knowledge

If you just want a box with a dynamic image in it (without any other element in the box, just the image) you can use the mediabox extension (https://github.com/stefanwalther/qsMediaBox/raw/master/build/sense-media-box_latest.zip )

You can then load your images in your loading script Base64 encoded and link them to a field of choice; you then set up the media box extension as an html object and to display those images; see below and attached

Flags-Mexico.pngFlags-Canada.pngFlags-USA.png