How to Get Radio Button Selected Value in Power Apps?

Are you eagerly waiting to learn how to get a selected value from a Power Apps Radio button? No need to worry!

You follow this Power Apps tutorial to get all the information about how to get Radio button selected value in Power Apps using different examples. Such as:

  • Get Radio Button Selected Value in Power Apps [From SharePoint List]
  • Navigate Power Apps Screen Depending upon the Radio Button Selected Value

How to Get Radio Button Selected Value in Power Apps

Here, we will discuss getting a Power Apps Radio button selected value using two scenarios.

Scenario – 1:

1. In Power Apps, There is a Radio button control and a Text label control. The Radio button has the following values:

Items = ["Laptop", "Tablet", "Television", "Smart Phone", "Watch"]
How to Get a Power Apps Radio Button Selected Value

2. Then, insert a Text label and set its Text property as:

Text = Radio_Products.Selected.Value

Where,

  • Radio_Products.Selected.Value = Power Apps Radio Button Selected Value
How to Get the Power Apps Radio Button Selected Value

3. Save, Publish, and Preview the app. When a user selects any value from the Radio button, it will be displayed on the text label, as in the screenshot below.

Get Radio Button Selected Value in Power Apps

This is how to get a Power Apps Radio button selected value on a Text label control.

Scenario – 2:

1. I will take the same Power Apps Radio values for this scenario, i.e.,

Items = ["Laptop", "Tablet", "Television", "Smart Phone", "Watch"]

2. Now, select the Power Apps Radio button and set its OnSelect property to the code below:

OnSelect = If(
    Radio_Products.Selected.Value = "Laptop",
    Set(
        gvPrice,
        "$1500"
    ),
    Radio_Products.Selected.Value = "Tablet",
    Set(
        gvPrice,
        "$800"
    ),
    Radio_Products.Selected.Value = "Television",
    Set(
        gvPrice,
        "$1200"
    ),
    Radio_Products.Selected.Value = "Smart Phone",
    Set(
        gvPrice,
        "$1400"
    ),
    Radio_Products.Selected.Value = "Watch",
    Set(
        gvPrice,
        "$600"
    )
)

Where,

  • Radio_Products = Power Apps Radio Button Name
  • gvPrice = Power Apps Global variable Name
  • “Laptop”, “Tablet”, “Television”, “Smart Phone”, “Watch” = Radio Button Items
  • “$1500”, “$800”, “$1200”, “$1400”, “$600” = Power Apps Global Variable Values
Get a Power Apps Radio Button Selected Value Based On Variable

3. Next, insert a Text input and set its Default property as:

Default = gvPrice
Get Power Apps Radio Button Selected Value Based On a Variable

4. Save, Publish, and Preview the app. When a user selects any value from the Radio button, the Text input will display the Product price based on the deleted value, as in the screenshot below.

Get Power Apps Radio Button Selected Value Based On Variable

This is how to get a Power Apps Radio button selected value using a Variable.

Get Power Apps Radio Button Selected Value From SharePoint List

Let’s see how to get a Power Apps Radio button selected value from the SharePoint list.

Example:

1. I have a SharePoint Online list named “Patient Tracker“. This list contains the Text field column [Patient ID], and it has the following items [“SP321”, “SP322”, “SP323”, “SP324”, “SP325”].

Get Power Apps Radio Button Selected Value From a SharePoint List

2. In Power Apps, there is a Button control and four Text input controls. When a user selects any value [Patient ID] from the Power Apps Radio button, all the details of that specific ID will be displayed in these four text controls.

Get Power Apps Radio Button Selected Value From SharePoint List

To achieve the above example, follow the below steps. Such as:

3. On the Power Apps Screen -> Insert a Radio button and set its Items property as:

Items = 'Patient Tracker'.Title

Where,

  • ‘Patient Tracker’ = SharePoint Online List
  • Title = SharePoint Text Field
Get a Power Apps Radio Button Selected Value From the SharePoint List

4. Then, insert four Text inputs and set their Default properties as shown below.

Default = LookUp(
    'Patient Tracker',
    Title = Radio_PatientID.Selected.Title,    
    Name                                    // You can change name of the SharePoint Fields
)

Where,

  • ‘Patient Tracker’ = SharePoint Online List
  • Radio_PatientID = Power Apps Radio Button Name
  • Name = SharePoint Text Field Name
Get a Power Apps Radio Button Selected Value From SharePoint List

5. Save, Publish, and Preview the app. When the user selects any value from the Power Apps Radio button, the Text inputs will display all information based on the Radio button value chosen, as shown below.

Get Power Apps Radio Button Selected Value From SharePoint Online List

This is how to get a Power Apps Radio button selected value from SharePoint.

Navigate Power Apps Screen Depending On Radio Button Selected Value

In the last, I will show you how to navigate the Power Apps Screen depending on the Radio button selected value.

Example:

1. I will take the same SharePoint list [Patient Tracker] for this example.

2. In Power Apps, there is a Radio button control having the values, i.e., [Influenza, Malaria, Lyme disease, Mumps, Polio], from the SharePoint Lookup field.

3. When a user selects any value from the Radio button control, it will navigate to another screen, i.e., [DiseasesDetailsScreen], as in the screenshot below.

How to Navigate Power Apps Screen Depending on Radio Button Selected Value

To work around the above example, follow the below steps. Such as:

4. On the Power Apps Screen -> Insert a Radio button control and set its Items property to the code below.

Items = Distinct(
    'Patient Tracker',
    Disease.Value
)

Where,

  • ‘Patient Tracker’ = SharePoint Online List
  • Disease = SharePoint Lookup Field
Navigate Power Apps Screen Depending On a Radio Button Selected Value

5. Also, select the Radio button’s OnSelect property to the code below.

OnSelect = If(
    !IsBlank(Radio_Disease.Selected.Value),
    Navigate(DiseasesDetailsScreen)
)

Where,

  • Radio_Disease = Power Apps Radio Button Name
  • DiseasesDetailsScreen = Power Apps Another Screen Name
Navigate Power Apps Screen Depending Upon Radio Button Selected Value

6. Save, Publish, and Preview the app. When the user selects any value from the Power Apps Radio button, it will navigate to another screen, as in the screenshot below.

Navigate Power Apps Screen Depending On Radio Button Selected Value

This is all about how to navigate the Power Apps Screen depending on the Radio button selected value.

Conclusion

I trust that this Microsoft Power Apps tutorial provided all the information about getting the Radio button selected value in Power Apps.

Here, we discussed how to get the Power Apps Radio button selected value manually and how to get a Power Apps Radio button value chosen based on a variable.

Also, we covered how to get a Power Apps Radio button selected value from the SharePoint list. Last, we learned how to navigate the Power Apps Screen depending on the Radio button selected value.

Additionally, you may like some more Power Apps tutorials: