web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Radio Buttons, Choice
Power Apps
Answered

Radio Buttons, Choice

(0) ShareShare
ReportReport
Posted on by

Hello!
I have a task but I am completely in stuck:
I have a slider from 2 - 20;

Card room is hidden (this card exist 3 radio buttons : a, b , c;

If the user choose on slider 6 - he can see only a, if 8 - he/she has a choice between - b and c; if user choose 12 - the choice is only c.
What is the best way to complete ?
I tried to apply if statement : If(Data card,,,, > 6,
"a",
"b" & " " & "c"
)
but  it doesn`t work, to hide a card with slider I applied similar formula.

Categories:
I have the same question (0)
  • LaurensM Profile Picture
    12,516 Moderator on at

    Hi @Vik2112,

     

    You will have to adjust the Items property of the radio button control. Do I understand it correctly that you want to hide certain radio button values when specific slider values are selected (6, 8 & 12) and show all values when other numbers are selected? The code below takes that approach:

     

    If(
     //Hide values depending on slider selection
     //Change Slider1 to the correct control name
     Slider1.Value = 6,
     ["a"],
     Slider1.Value = 8,
     ["b","c"],
     Slider1.Value = 12,
     ["c"],
     //In all other cases display all 3 options
     ["a","b","c"]
    )

     

    If this solves your question, would you be so kind as to accept it as a solution.

    Thanks!

  • Verified answer
    jrletner Profile Picture
    720 Super User 2025 Season 2 on at

    I set up an example with a slider, slider value text, and a radio button control.

    jrletner_0-1705947137337.png


    You can easily adjust the logic, but you see how when the slider changes values, the radio button control updates.

     

    This code was placed inside the "DefaultSelectedItems" of the radio button control:

    jrletner_1-1705947201876.png

     

    If(
     Slider1.Value > 8 && Slider1.Value <= 12,
     ["C"],
     Slider1.Value > 6 && Slider1.Value <= 8,
     ["B"],
     Slider1.Value <= 6,
     ["A"]
    )

     

    You should then be able to hide the radio button control as I did here (showing the radio control value in the text label):

    jrletner_2-1705947321503.png


    Hope that helps answer your question!

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard