cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
joans
Level: Powered On

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
joans
Level: Powered On

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") )

2 REPLIES 2
Microsoft Employee

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
joans
Level: Powered On

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") )