cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Aaron3Sixty5
Helper I
Helper I

Radio button control issue, is it a bug?

Hi Power Apps community!

I've run into what seems like a bug.  The radio control is 'remembering' the previous selected item under certain conditions.

 

SharePoint has a choice column, RadioBtn, set to radio button, with three choices, "once, twice, thrice" and no default:

Aaron3Sixty5_0-1616078379040.png

In PowerApps/Customize Forms, I added the radio control to the RadioBtn data card below the combo box, set the Items property to the same as the combo box:  Choices([@radioButtonToPowerappsTest].RadioBtn), and set the Default property to ThisItem.RadioBtn.Value:

Aaron3Sixty5_3-1616079429222.png

 

When I browse through each option, the default is shown correctly at first:

Click test2:

Aaron3Sixty5_1-1616079201951.png

Click test 3:

Aaron3Sixty5_2-1616079276983.png

But as soon as I click the first record with a blank RadioBtn, it 'remembers' the previous selected option, even though it is quite clear Thisitem.RadioBtn.Value is indeed blank:

Aaron3Sixty5_4-1616079712628.png

 

If I click the next item, 'test another blank', only then does it correctly show nothing selected:

Aaron3Sixty5_5-1616079793460.png

 

Then if I click item test 1a:

Aaron3Sixty5_6-1616079871562.png

and follow that with clicking 'test another blank':

Aaron3Sixty5_7-1616079974097.png

 

If I keep clicking 'test another blank' I get same as above.  Only until I click 'test blank' the radio button options clear:

Aaron3Sixty5_8-1616080125757.png

 

I'm sure there is a method to 'reset' or force this control to behave; I'll work on that later today.  But this certainly appears like buggy behavior...however I'm probably doing something wrong so please let me know!

Thanks,

Aaron

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

Hi @Aaron3Sixty5 ,

 

Please try to use this formula on Default property of radio cotrol:

If(!IsBlank(ThisItem.RadioBtn.Value),ThisItem.RadioBtn.Value,"")

 

The result is as follows:

AAA.gif

 

Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.

View solution in original post

3 REPLIES 3
v-xiaochen-msft
Community Support
Community Support

Hi @Aaron3Sixty5 ,

 

Please try to use this formula on Default property of radio cotrol:

If(!IsBlank(ThisItem.RadioBtn.Value),ThisItem.RadioBtn.Value,"")

 

The result is as follows:

AAA.gif

 

Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.

RameshMukka
Post Prodigy
Post Prodigy

@Aaron3Sixty5 @v-xiaochen-msft 

I am having same exact problem. Upon form submission, I am resetting all my controls using a variable at Reset property of all controls but somehow the radio button appears like its reset as I dont see any radio selected, but when i take a label and input it with radio1.Selected.Value it shows me previously allocated value. This is happening for multiple radio buttons. Have you found out the cause and solution?

I have the same issue

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,293)