cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MarkieRMT
Level: Powered On

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
Highlighted
hpkeong
Level 10

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
Highlighted
hpkeong
Level 10

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
Level: Powered On

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
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,562)