Announcements
Hello,
On my PowerApp I have multiple yes/no switches. Each of these has an image/icon to display what it relates to. What I want to do is that if the form is in Edit mode, then all the images should be displayed.If the fom is in read-only mode then the images should only be displayes if the yes/no switch equals "true" and if "false" no not display the image.
You have 2 options.1:Add 2 images (1 for toxic and other for the other) and OnVisible write:If(Toggle1.Value = true, true, false) or the condition you want
2:
Add only a single image and write tis on Image
If(Toggle1.Value = true, Toxic.png, OtherImage.png)
If you need additional help please tag me in your reply and please like my reply.If my reply provided you with a solution, pleased mark it as a solution ✔️!Best regards,Gonçalo NogueiraCheck my LinkedIn!Check my User Group (pt-PT)!Last Post on CommunityMy website!
Hi @Nogueira1306 On the visible property? - doesnt look right to me. The source image is named "Toxic.gif" if that helps.
In the visible property you dont set the iamge, you say if it is visible or not (true or false)
If(DataCardValue8.Value = true, true, false)If it is toxic, it will show the image, if not, no.
Hi @Nogueira1306
Just to clarify, which value am I doing that on?
So, I've uploaded a blank png file to my App and then I've used this expression:It still doesn't seem to like it - have done as you've said above.
What do you think is up?
@sudosaurus
You can try thisIf(DataCardValue8.Value, blank, Toxic)If blank is an image by itself, say blank or simply say None which means you are not showing any image
You need to insert the name of the images.Toxic is a image?Balnk is a image?
@avootla1 that's great.
How would I go about hiding data cards if the value is set to "No"?
For example, one of my data cards is named: Toxic_DataCard1and the yes/no value is named: DataCardValue8
Thanks!
@sudosaurus Set the Toxic_DataCard1.Visible property to something like thisIf(DataCardValue8.Value = "yes", true, false)
This works if yes/no are string values. If they are option values then you may have to call the optionset and assign the value.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Vish WR 610
Haque 317
WarrenBelz 315 Most Valuable Professional