web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to set the dropdow...
Power Apps
Answered

How to set the dropdown value and display name

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

 

I have a master table in sql and there is relationship Fk so i want to save the ID as value in the trasactnal table and want to display name to the user in form . 

 

How can i set a value as id to dropdown and name as display name of control in dropdown. I am not seeing any thing like it. 

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @Anonymous,

    dropdown.PNGThe dropdown control actually selects an entire record.  You can display any of the fields by selecting the dropdown control and going to the advanced section on the right hand side of the screen.  Click on the value dropdown and choose the field that you want to display.  You can reference any field in the record selected in dropdown control anywhere in the app.  Place a label anywhere and set the Property to Dropdown1.Selected. and the list of fields will pop up for you to choose from.  If you want to filter a gallery you could reference the ID field of the dropdown as a foreign key in a second datasource.  For example if you wanted to filter a gallery based on another datasource, you would set the datasource as Filter(DS2,ID=Dropdown1.Selected.ID) and this would show all of the child records for the datasource in the dropdown control. example.PNGIn the example, all of the Orders made by the customer rep selected in the dropdown are shown in the datatable.  

  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

    Do you want to set Id as value to Dropdown and name as display name of control in Dropdown?

    If you want to set the Id property value as selected value (Dropdown.Selected.Value) of the Dropdown control, along with the name as the display name of Dropdown control, I afraid that there is no way to achieve your needs in PowerApps currently.

    I agree with @Drrickryp's thought almost. I have made a test on my side, please take a try with the following workaround:4.JPG

    Set the Items property of the Dropdown control to following:

    '[dbo].[Employees]'

    On your side, you should type:

    '[dbo].[YourSQLTable]' /* <-- Type your SQL Table */

    Set the Value property to a column in your SQL table, which you want to display within the Dropdown control.

    If you want to get/reference Id property value of selected value within the Dropdown control (Dropdown1), please take a try with the following formula:

    Dropdown1.Selected.Id

    Best regards,

    Kris

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello everybody, 

    by accident I guess I figored it out. My solution is tested by using forms. 

     

    1) Display the value like in the solution above

    2) Use the "update" function of the parent datacard with "DataCardValue8.Selected.ID"

     

    Should work, best regards

  • Ashan Profile Picture
    7 on at

    Hi..... 

    How to can get *Screen 1* selected drop down value on *screen 2* text box. 

    As example; IF *screen 1* I select user A, that name needs to shown in *screen 2*

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard