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

1 REPLY 1
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

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (3,140)