cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JonathanGibbs
Advocate III
Advocate III

Populate dropdown with values as well as display texts?

Can I populate a dropdown's items with value-text pairs, rather than just texts? And then retrieve a numeric Value rather than the displayed text? in other words, emulate

<Select><Option value=1>Item 1</Option><Option Value=2>Item 2</Option><Option Value=3>Item 3</Option></Select>

12 REPLIES 12

Oops!

 

One more thing:

In the advanced tab of the DropDown, you mest enter the following in the "Value" field:

 

Sample1.PNG

One more thing:

 

You need to add this so that if you come from a selected item in a gallery, you can acctually see the data that comes from the sharpoint list:

 

DataCardGender_1.Dropdown7_1.Default = Concatenate(Parent.Default, " - ", LookUp(UCA_Gender, GenderID = Parent.Default, GenderDesc))

aamir
Frequent Visitor

I dont see a similar Text/Value pair for the items populated from databases. Is there any way to achieve this from a Sql Server Data source?

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,591)