cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Radio buttons not selecting options as default

Hi all,

 

I'm wanting my radio button to not select Yes or No during the rendering of my form, trying to achieve the view below:unselected.PNG

 

 

 

 

 

 

 

 

 

 

 

My defuault code is:

 If(Parent.Default, "Yes", "No")

Can this be done or does it have to have a value?

1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

Re: Radio buttons not selecting options as default

This is how I solved the problem:

 

If(<FormNameHere>.Mode = FormMode.New," ", If(Parent.Default, "Yes", "No"))

 

What this code does, it will make sure your New form is set to nothing (" ") but it's on edit mode it will show the details of what is saved on the list ( If(Parent.Default, "Yes", "No") )

View solution in original post

2 REPLIES 2
Microsoft
Microsoft

Re: Radio buttons not selecting options as default

Just so I understand, despite the fact that Parent.Default is indeed true or false, you would prefer your Radio button to not set any values, right? If so then setting the RadioButton.Default="" should achieve this. The user will have to provide a value.

Anonymous
Not applicable

Re: Radio buttons not selecting options as default

This is how I solved the problem:

 

If(<FormNameHere>.Mode = FormMode.New," ", If(Parent.Default, "Yes", "No"))

 

What this code does, it will make sure your New form is set to nothing (" ") but it's on edit mode it will show the details of what is saved on the list ( If(Parent.Default, "Yes", "No") )

View solution in original post

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

‘Better Together’ T-Shirt Contest – Winner Announced!

‘Better Together’ T-Shirt Contest – Winner Announced!

And the winner is...

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Power Platform 2020 release wave 1 plan

Power Platform 2020 release wave 1 plan

Features releasing from April 2020 through September 2020

Top Solution Authors
Top Kudoed Authors
Users online (6,338)