cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
MarkieRMT
Regular Visitor

display image when a condition is met

Hi, I'm looking for a solution for the following:

I have an excel where I list dangerous goods. These goods have danger symbols. In my excel sheet I have different columns with, when applicable for the product, an 'X' in the cell with the danger symbol. 

Now I uploaded the pictures of these symbols in PowerApps Studio. I also displayed them. Now I want to add a condition to the displaying of these images. When there's an 'X' in excel in a column, then the image needs to be displayed, else not. I tried to use this - Disabled=If(flammable="X",false) - but that didn't work.

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
hpkeong Community Champion
Community Champion

Re: display image when a condition is met

Hi

 

Assume that Flammable is the title of the column which you will fill-in X if there is danger products.

Insert an Image connected to related image field.

Set:

Visible: If(Flammable.Text = "X", true, false)

1. Use Visible for the Image (because you use to toggle Show or No Show)

2. When using any Text Field Name, please use FielsName.Text.

 

Hope this helps.

TQ

hpkeong

View solution in original post

2 REPLIES 2
hpkeong Community Champion
Community Champion

Re: display image when a condition is met

Hi

 

Assume that Flammable is the title of the column which you will fill-in X if there is danger products.

Insert an Image connected to related image field.

Set:

Visible: If(Flammable.Text = "X", true, false)

1. Use Visible for the Image (because you use to toggle Show or No Show)

2. When using any Text Field Name, please use FielsName.Text.

 

Hope this helps.

TQ

hpkeong

View solution in original post

MarkieRMT
Regular Visitor

Re: display image when a condition is met

Yup, that worked almost. I had to remove the - .Text - to get it to work.

Thanks

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Power Platform 2020 release wave 1 plan

Power Platform 2020 release wave 1 plan

Features releasing from April 2020 through September 2020

Top Solution Authors
Top Kudoed Authors
Users online (7,130)