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 Nogueira
Check my LinkedIn!
Check my User Group (pt-PT)!
Last Post on Community
My 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.
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 Nogueira
Check my LinkedIn!
Check my User Group (pt-PT)!
Last Post on Community
My website!
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?
You can try this
If(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_DataCard1
and the yes/no value is named: DataCardValue8
Thanks!
User | Count |
---|---|
260 | |
109 | |
93 | |
57 | |
41 |