I have a radio button control on my app but I want this text label to show when nothing is selected on the radio button. Then have the text go away when someone makes a selection.
Right now I have the below in my OnSelect field of the radio control:
If(Radio1.Selected.Value=“Fifth Floor”,”Sixth Floor”,”Seventh Floor”, “Tenth Floor”, Set(Var_Visible,true),Set(Var_Visible,False))
This is what I have in the Visible field of the text:
Var_Visible
Now my text doesn’t show at all whether something is selected in the radio control or not.
Please Help!
That worked! Thank you for answering all my questions!
Hi @nsjohnson86 ,
Apologies, I got confused because of the formula you posted which seemed to suggest you wanted the text to show in case certain values were selected in the Radio control.
To only have a control showing when nothing is selected in the radio control, set its' Visible property to:
IsBlank(Radio1.Selected.Value)
I corrected my formula and put exactly what you have, but I want the text to not be visible when a radio button is selected.
It is still there when I select any of the floor options.
Hi @nsjohnson86 ,
The double lines ( || ) are logical Or operators and should be left there as they are. Please copy the formula as I posted it.
That didn’t work, I just get an error.
I put the condition as you put above and put commas where you put the double lines.
I also left the visible field as var_visible for my text
Hi @nsjohnson86 ,
Indeed the If function is indeed not needed. You can replace your current formula for the OnSelect property of the radio control with the formula I posted.
So I don’t need the IF part of my condition in the beginning? Is what you put above what I should change my radio button condition to?
Hi @nsjohnson86 ,
The conditions were not correct since the first half was missing on the last 3.
Also the conditions themselves return a boolean which you can use to set the value of the variable:
Set(
Var_Visible,
Radio1.Selected.Value="Fifth Floor" ||
Radio1.Selected.Value="Sixth Floor" ||
Radio1.Selected.Value="Seventh Floor" ||
Radio1.Selected.Value="Tenth Floor"
)
WarrenBelz
146,645
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,997
Most Valuable Professional