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
Highlighted
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
Highlighted
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.

Highlighted
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
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Users online (4,706)