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 Button OnSelect
Power Apps
Answered

Radio Button OnSelect

(1) ShareShare
ReportReport
Posted on by

Hello

 

How do i give each radio button a different OnSelect function. It seems I can only change the OnSelect function of the "Whole set" of radio buttons?

 

I am a beginner

 

Thank You

Lorcan

Categories:
I have the same question (1)
  • Verified answer
    Jeff_Thorpe Profile Picture
    6,085 Super User 2024 Season 1 on at

    You can use an If or Switch statement fire off different formulas based on what is selected. In the example below I am setting a variable with different values based on what is being selected.

     

    Radio Buttons > OnSelect

    If(Radio1.Selected.Value = "1", Set(gvTestRadio, "One"), If(Radio1.Selected.Value = "2", Set(gvTestRadio, "Two")))
  • Verified answer
    v-monli-msft Profile Picture
    on at

    Hi @Anonymous,

     

    Like @Jeff_Thorpe suggested, Radio control is recognized as one control for PowerApps. Thus you cannot define each part of Radio in the formula. But you can workaround this by identifying which value is selected in Radio control. Work with IF function, using something like:

    If(Radio1.Selected.Value="1", .... , ....)

    For more information about IF function, please refer to:

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-if

     

    Regards,

    Mona

  • Roza Profile Picture
    2 on at

    Roza_0-1657077706357.png

    Can you help me? i want that when user will select "No" option from the  second question will appear dynamically.

  • henningjp Profile Picture
    25 on at

    @Roza You should really create new posts to ask new questions, then you can separate the discussion from the above question and mark a correct solution as your own.  Please do not ask new questions in the comments of someone else's post.  You won't get many answers (as evidenced by asking this over a year ago).

     

    However, you can set the Visible property of the 2nd data card to be true if the "No" option of the previous data card is selected and False otherwise.

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 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard