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.
Set the Toxic_DataCard1.Visible property to something like this
If(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.
then the condition looks something like this
If(DataCardValue8.Value = "yes" And FormName.DisplayMode = DisplayMode.View, true, false)
Change FormName to the name of your form and try. Lmk if this works.
@avootla1 I tried that.
If(DataCardValue6.Value = "yes" And SelectedItem_form.DisplayMode = DisplayMode.View, true, false)
It doesn't show the datacard when in Edit mode.
Keep up to date with current events and community announcements in the Power Apps community.
A great place where you can stay up to date with community calls and interact with the speakers.
Check out the latest Community Blog from the community!