cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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

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

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

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

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