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

Announcements

News and Announcements icon
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 Microsoft Employee

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
    Microsoft Employee 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 519 Most Valuable Professional

#2
11manish Profile Picture

11manish 489

#3
Haque Profile Picture

Haque 327

Last 30 days Overall leaderboard