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 / On button select set r...
Power Apps
Answered

On button select set radio button to pick one selection

(0) ShareShare
ReportReport
Posted on by 80

I have 4 buttons, lets say button 1, 2,3 & 4, and a radio that has 4 options to chose from that will correspond to those buttons so 4 choices  A,B,C & D called CMITYPE.  What I would like to do is is on click of button 1 that the radio shows selection of A if I click on button 2 radio B selects etc.  What is the easiest way to go about this?  TY for the help.

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    Quick and easy answer is:

     

    In the OnSelect of each button:

       Button 1 OnSelect -  UpdateContext({OptChoice:"A"})

       Button 1 OnSelect -  UpdateContext({OptChoice:"B"})

       Button 1 OnSelect -  UpdateContext({OptChoice:"C"})

       Button 1 OnSelect -  UpdateContext({OptChoice:"D"})

     

    In the Default property of the Radio control:

       OptChoice

  • polska2180 Profile Picture
    80 on at

    Quick and easy i like ty...worked like a charm but annoyingly does not save to sharepoint where the info is being stored unless a user manually makes the selection, super frustrating.  So even though when i click the button A is selected in the radio list, once form is submitted it shows that row cell as blank, on the other hand if i then change to a different selection and back to A or just manually enter the selection it shows A B C or D.

  • polska2180 Profile Picture
    80 on at

    So my follow up issue with the radio button not saving to sharepoint, I moved the patch() command to the button itself instead of the radio button and for whatever reason this way worked.

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    Yes, you would need to put the update/patch logic somewhere.  I would have said the button would be the best place. When you start "automating" the default on another control and then use OnChange or OnCheck or OnUncheck, you can get yourself into a situation where things get fired off in a way you didn't expect.  The button is the good choice.  However...if the user would also be checking/unchecking the radio control as well as possibly the button, then you will need to consider putting the update/patch logic in the OnChange event.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard