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
Super User
Super User

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
2 REPLIES 2
Highlighted
Super User
Super User

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
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
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, September 18th at 8am PDT

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 49 members 4,323 guests
Please welcome our newest community members: