I have a canvas app with multiple screens. Screen 1 has radio button choices [Choice A, Choice B, Choice C]. Screen 2 has corresponding forms [Form A, Form B, Form C]. When a user selects a choice, they are navigated to Screen 2 which displays the corresponding form. [IE, User selects Choice A on first screen, and navigates to screen 2 showing Form A only]. The rest of the forms are hidden. I am having trouble toggling visibility based on the radio button's selected value.
I have set a global variable on the app: Set(varProjectType, Radio1.Selected.Value) to store the users choice.
Then, on each of the forms, I have set the Visible property to: If(varProjectType = "Choice", true, false). My assumption is that it checks if the user's choice is equal to the string, then set the Visible property to true if it's true, or false if it's not. This would toggle the visibility accordingly. Instead, even when the selected Choice equals the text, the form is not visble.
I can't figure out what I'm doing wrong... I could set the Visible property to show If(Radio1.Selected.Value="Choice A") on the form, but this would cause performance degradation so I'm trying to toggle in the most efficient way.
Please advise. Thanks!