How to Set Radio Button Default Value in Power Apps?

Do you want to set the radio button default value in Power Apps? In this Power Apps tutorial, I will show you how to set radio button default value in Power Apps, including the below topics:

  • Set Radio Button Default Value in Power Apps [Manually]
  • Set Radio Button Default Value in Power Apps [From SharePoint List]
  • Power Apps Radio Button Default No Selection

Set Radio Button Default Value in Power Apps Manually

Here, we will see how to set the Radio button default value in Power Apps directly.

Example:

1. Whenever you add a Radio button, by default, the Radio button values are 1 and 2. Also, the default value won’t be selected, and all choices will appear with an unselected option like below.

Set Radio Button Default Value in Power Apps Manually

2. Then, in the Power Apps Radio button, I added items, i.e., [“Not Started”, “In Progress”, “Completed”] directly like below.

Items = [“Not Started”, “In Progress”, “Completed”]
Set Radio Button Default Value in the Power Apps Manually

2. But, If you want to set the Radio button’s default value while opening the Power Apps app, then you must set a default value in the Power Apps Radio button.

3. For that, select a Radio button control and set its Default property as:

Default = "Completed"

Where,

  • “Completed” = It is the specific value that we want to set as the Radio button default value

Refer to the below screenshot:

Set Radio Button Default Value in Power Apps

This is how to set a default value in the Power Apps Radio button control.

Set Radio Button Default Value in Power Apps From SharePoint List

Next, we will discuss how to set the Power Apps Radio button default value from the SharePoint list.

Example:

1. I have a SharePoint Online list named “Training Courses“. This list contains the Choice field column [Technology], and it has the following choices [“Power Apps, Power Automate, Power BI, SharePoint”]

How to set default value in Power Apps Radio button

2. In Power Apps, there is a Radio button control with the SharePoint choice field values, as in the screenshot below.

Items = Choices([@'Training Courses'].'Technology')
Set Radio Button Default Value in the Power Apps from SharePoint list

3. Now, I want to set the Radio button’s default value while opening the Power Apps app; you must set a default value for the Power Apps Radio button.

4. For that, select a Radio button control and set its Default property. Also, go to the Radio button Advanced properties and set the Default property as shown below.

Default = "SharePoint"
Set Radio Button Default Value in Power Apps from SharePoint list

This is how to set a Power Apps Radio button default value from the SharePoint list.

Power Apps Radio Button Default No Selection

Let’s see how to work with the Power Apps Radio button default no selection.

Example:

1. I have a Power Apps Edit form, and there is a Radio button control having the values, i.e., [“Yes” and “No”].

Items = ["Yes", "No"]
Power Apps Radio Button Default No Selection

2. When the user sets Power Apps Edit form Default mode as “New”, the Radio button default value won’t be selected (“”). Or else, when the user sets Power Apps Edit form Default mode as “Edit” or “View”, the Radio button default value will selected as “No”.

Refer to the below images:

Power Apps Radio Button Control Default No Selection
Power Apps Radio button not selecting options as default

To do so, select the Radio button and set its Default property to the code as shown below:

Default = If(
    frm_NewTravelRequest.Mode = FormMode.New,
    "",
    If(
        Parent.Default,
        "Yes",
        "No"
    )
)

Where,

  • frm_NewTravelRequest = Power Apps Edit Form Name
How to Use Power Apps Radio Button Control Default No Selection

This is how to use the Power Apps Radio button default no selection.

Conclusion

Here, from this Power Apps tutorial, I have explained how to set the default value in the radio button in Power Apps. We saw:

  • How to Set Radio Button Default Value in Power Apps manually.
  • How to set the radio button default value in Power Apps from a SharePoint list
  • Power Apps Radio Button Default No Selection

You may also like: