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.
@sudosaurus
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.
@avootla1 I only want this to occur when the form is in view only mode. In new and edit modes all the datacards need to show.
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.
@sudosaurus
is DataCardValue6, part of SelectedItem_form?
if it is inside the form. the above condition will not work.
User | Count |
---|---|
260 | |
110 | |
97 | |
56 | |
40 |