I have a series of Toggle controls (Toggle 1, Toggle 2, Toggle 2).
I have a Radio button control.
The Radio button default/position is set by the toggle controls and the status of the 'ComplianceStatus' column in the MemberCollection.
I also have the following in the Default of the Radio button. In an attempt to grab
Switch(
Toggle1.Value,false,"N/A",
Toggle2.Value=false,"Noncompliant","Compliant")
The UpdateIf below works fine in the 'OnChange' of a toggle.
UpdateIf(MemberCollection, ID=ThisItem.ID, {ComplianceStatus: If(Self.Selected.Value="Compliant","Noncompliant")})
If I add the "N/A" parameter to it and put it in the a Radio control, no bueno.
UpdateIf(MemberCollection, ID=ThisItem.ID, {ComplianceStatus: If(Self.Selected.Value="N/A","Compliant","Noncompliant")})
My assumption was because the Radio control allowed for three options simply adding "N/A" to the below for the Radio control would work. Apparently not.