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 shows odd...
Power Apps
Unanswered

Radio button shows odd behavior

(0) ShareShare
ReportReport
Posted on by 4

Hello!

In my powerapp, if you use the drop-down to select a person, I populate a collection with their tasks:

ClearCollect(MyRows,Filter(AddColumns(ScorecardRows,"GreenRedResult","Yellow"),UnderwriterIndex=LookUp(Underwriters,Person.SelectedText.Value=UnderwriterName).UnderwriterIndex))

 

A gallery is populated using the collection. I have a radio button on each row of the gallery for the user to choose "Green" or "Red" - whether the task is completed. I'm trying to update the collection using the radio button's "On Change":

Patch(MyRows,Rows.Selected,{GreenRedResult:GreenRed.Selected.Value})

 

When I try to click the radio button, nothing happens the first time. The second time I click it selects a value, but when I click on the radio button on the second row it unchecks the first row's radio button.

 

1. Am I approaching the problem correctly?

2. How do I get the radio button to work properly?

Thanks!

Categories:
I have the same question (0)
  • vivekravi Profile Picture
    241 on at

    Hello,

     

    Typically do not use anything on the on change as it complicates things. Instead, try to use IF condition on 'OnSelect' of the radio button.

     

    I will share a different code but should give you an idea.

     

    If(
     IsBlank(
     LookUp(
     colanswers,
     APQPQuestionID = ThisItem.ID
     )
     ),
     Collect(
     colanswers,
     {
     APQPQuestionID: Gallery2.Selected.ID,
     AnswerValue: {Value: Radio1.Selected.Value},
     QuestionText: Gallery2.Selected.Title,
     CategoryText: Dropdown1.Selected.Value,
     APQPRequestID: varAPQPID
     }
     ),
     Patch(
     colanswers,
     LookUp(
     colanswers,
     APQPQuestionID = ThisItem.ID
     ),
     {AnswerValue: {Value: Radio1.Selected.Value}}
     )
    );
  • TastySauerkraut Profile Picture
    4 on at

    In case someone stumbles on this post in the future, once I assigned a default value to my radio button, it began acting normally.  It doesn't seem like that should be needed, but everything works now.

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard