How to Get Dropdown Selected Value in Power Apps?

Do you want to get the dropdown selected value in Power Apps? This Power Apps tutorial explains how to get dropdown selected value in Power Apps.

Here, I will show you how to display the Power Apps dropdown selected value to text with two examples. Such as:

  • How to display the Power Apps dropdown selected value to text
  • Power Apps dropdown selected value records to text

Get Dropdown Selected Value in Power Apps

Here, I will show you how to display the Power Apps dropdown selected value to text.

1. I have a SharePoint Online List, i.e., [Patient Tracker]. This list contains the below fields.

Column NameData Type
Patient IDIt is a default single line of text, I just renamed it as “Patient ID”
NameA single line of text
DOBDate and time
Contact NumberNumber
Power Apps Dropdown Selected Value To Text

2. In Power Apps, there is a Dropdown control and Text input control. In the dropdown, I have bineded the SharePoint text field [Name] values.

3. When a user selects a specific value from the dropdown control, it will display on the text label, as in the screenshot below.

Power Apps Selected Dropdown Value To Text

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

4. Open Power Apps -> Create a Power Apps canvas app -> Connect the SharePoint list to the app. Once you connect, it will look like the screenshot below.

How to Display Power Apps Dropdown Selected Value to Text

5. Insert a Dropdown control [drp_PatientName] -> Set its Items property and select Value property as shown below.

Items = 'Patient Tracker'

Value = Name

Where,

  • ‘Patient Tracker’ = SharePoint Online List
  • Name = SharePoint Text Field
How to Display the Power Apps Dropdown Selected Value to Text

6. Then, insert a Text input and set its Default property to the code below.

Default = drp_PatientName.Selected.Name

Where,

  • drp_PatientName = Power Apps Dropdown Name
Power Apps Dropdown Control Selected Value To Text

7. Save, Publish, and Preview the app. The text input displays the value based on the dropdown selected value like below.

Power Apps Selected Dropdown Control Value To Text

This is how to display the Power Apps dropdown selected value on the text input control.

Power Apps Dropdown Selected Value Records to Text

Let’s see how to display the Power Apps dropdown selected value records to text.

Example:

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

2. In Power Apps, there is a Dropdown control and three Text input controls. The dropdown control has patient ID values.

3. When a user selects a specific value from the dropdown, the text inputs controls will display selected value records, as in the screenshot below.

Power Apps dropdown selected value to text input

To do so, follow the below steps. Such as:

4. On the Power Apps Screen -> Insert a Dropdown control, set its Items property, and select Value as Title as shown below.

Items = 'Patient Tracker'

Value = Title

Where,

  • ‘Patient Tracker’ = SharePoint Online List
  • Title = SharePoint Text Column
Power Apps selected dropdown value to text input

5. Then, insert three Text input controls and set their Default properties as shown below.

Default = drp_Patient.Selected.Name                          //For Patient Name

Default = drp_Patient.Selected.DOB                           //For Patient Date Of Birth

Default = drp_Patient.Selected.'Contact Number'   //For Patient Contact Number

Where,

  • drp_Patient = Power Apps Dropdown Name
  • Name, DOB, Contact Number = SharePoint List Fields
Power Apps dropdown control selected value to text input

6. Save, Publish, and Preview the app. These text inputs display Patient Details based on the selected Patient ID from the dropdown below.

Get Dropdown Selected Value in Power Apps

This is how to display the Power Apps dropdown value records on the text input controls.

Conclusion

In this tutorial, I have explained how to get a dropdown selected value in Power Apps and display it in a text. Also, I have shown how to bind selected record values to text in the Power Apps dropdown.

You may also like: