How to Get Radio Button Selected Value in Power Apps?

Have you worked with a scenario where you need to get the Power Apps radio button selected value? If Yes! No need to worry; I am here.

This Power Apps tutorial will guide you on How to get Radio Button Selected Value in Power Apps.

You can also learn from our tutorial how to get Power Apps Radio Button Selected Value From SharePoint List.

Get Power Apps Radio Button Selected Value

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

  • Get the Power Apps radio button selected value in a text label.
  • How to get the Power Apps radio button selected value using a variable.

Get the Power Apps radio button selected value in a text label

Let me show you how to get the Power Apps radio button selected value in a text label.

  • Sign in to your Power Apps with your valid Microsoft 365 credentials.
  • Create a Blank canvas app -> On the Power Apps screen, insert a Radio button control -> Set its Items property to:
["Laptop", "Tablet", "Television", "Smart Phone", "Watch"]
How to Get a Power Apps Radio Button Selected Value
  • Insert a Text label -> Set its Text property as:
Radio_Products.Selected.Value

Where,

  1. Radio_Products.Selected.Value = Power Apps Radio Button Selected Value
How to Get the Power Apps Radio Button Selected Value
  • 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 shown below:
Get Radio Button Selected Value in Power Apps

You can achieve this by getting the Power Apps radio button selected value in the text label. We can also get the Power Apps radio button selected value using a variable.

Get the Power Apps radio button selected value using a variable

Let’s check how we can get the Power Apps radio button selected value using a variable

Example,

We will take the same above scenario, but whenever the user selects a value from the radio button, the selected value price will be displayed on a text label as shown below:

Get Power Apps Radio Button Selected Value Based On Variable

Let’s follow the below steps to achieve this:

  • On the Power Apps screen, select the Power Apps Radio button -> Set its OnSelect property to:
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,

  1. Radio_Products = Power Apps Radio Button Name
  2. gvPrice = Power Apps Global variable Name
  3. “Laptop,”Tablet,” “Television,” “Smart Phone,” “Watch” = Radio Button Items
  4. “$1500”, “$800”, “$1200”, “$1400”, “$600” = Power Apps Global Variable Values
Get a Power Apps Radio Button Selected Value Based On Variable
  • Next, select a Text label control -> Set its Default property as:
gvPrice
Get Power Apps Radio Button Selected Value Based On a Variable
  • Save, Publish, and Preview the app. When a user selects any value from the Radio button, the Text label will display the Product price based on the selected 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 in a text label.

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: I have a SharePoint Online list that has various columns like:

Column NameData type
Patient IDTitle
NameSingle line of text
DOBDate and time
Get Power Apps Radio Button Selected Value From a SharePoint List

I created a Power Apps canvas app and added 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 as shown below:

Get Power Apps Radio Button Selected Value From SharePoint List

Follow the below steps to achieve it:

  • On the Power Apps Screen -> Insert a Radio button -> Set its Items property as:
'Patient Tracker'.Title

Where,

  1. ‘Patient Tracker’ = SharePoint Online List
  2. Title = SharePoint Text Field
Get a Power Apps Radio Button Selected Value From the SharePoint List
  • Then, insert four Text inputs controls -> Set their Default properties to:
LookUp(
    'Patient Tracker',
    Title = Radio_PatientID.Selected.Title,    
    Name                                    // You can change name of the SharePoint Fields
)

Where,

  1. ‘Patient Tracker’ = SharePoint Online List
  2. Radio_PatientID = Power Apps Radio Button Name
  3. Name = SharePoint Text Field Name
Get a Power Apps Radio Button Selected Value From SharePoint List
  • 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 i achieved by getting a Power Apps radio button selected value using SharePoint list.

Conclusion

I trust this Power Apps tutorial helped you complete your requirement to Get the Power Apps radio button selected value with different scenarios like getting the selected value using a text label and using a variable.

Lastly, you have gained the knowledge on getting Power Apps Radio Button Selected Value From SharePoint List.

Additionally, you may like some more Power Apps tutorials: