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

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard