I am trying to hide some labels in the Gallery and some datacards in the edit form based of a value in another field. When I go to the visible property and write something like, If(ThisItem.Allowed=yes,true,false), it throws me an error, right on the equal to sign, I am not able to get past this point. I am not able to do If(ThisItem.Allowed.Value=yes,true,false) too as when I use a period after Allowed (If(ThisItem.Allowed.) nothing comes up. Also if I try to assign the field to a label, it shows the value when I use ThisItem.Allowed in the text property of the label
Please help. This is embedded canvas app for D365.
Thanks in advance for your response.
Solved! Go to Solution.
Try with double quote like this :
Or try to use an update context, ex :
And set the visible Properties of your items with: showItem
Depend on your action, you can change the show value with a onselect properties or other one:
I don't really understand what is the "Allowed" you try to use.
If "Allowed" is supposed to be the Text to show or hide your items, you should try this in your labels and datacards :
Visible = If(TextInput1.Text = "Allowed";true;false)
Where TextUnput1 is your widget name for text input.
Sincere Apologies for confusing you. The field name is "AllowXXXXX" but I masked it as "Allowed". Its a field, an option set with two values, yes and no. I have masked it in the screenshot as well.
Thanks again for your response
Check out new user group experience and if you are a leader please create your group
Check out how to claim yours today!
Test your skills now with the Cloud Skill Challenge.
We are excited to announce that Demo Extravaganza for 2021 has started!
On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks