I have a switch control linked to a SharePoint YES/NO field called "Result". I would like to use an if statement to label the control:
I have tried this in the OnChange Event but it's not working - any ideas why.
If(Result=true, UpdateContext({Compliant:"Yes"}), UpdateContext({Compliant:"No"}))
FYI: I'm using a text box to check the value of Compliant in run time for now. The textbox is set to Compliant as the default.