cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
connor
Frequent Visitor

Dropdown dummy options tied to real values

Hi there, 

Is it possible to have a Dropdown display "dummy" values which are tied to a real values? 

My goal is to have a Textbox display the selection of the Dropdown box; however, the real values are primary keys and don't mean anything to a user.  I want to display in the Dropdown a value like "Banana" and have the Textbox show B1 which is the primary key of "Banana".

My formulas are:
Textbox

Dropdown2.Selected.Value

DropDown

Distinct(Products1,ProductID)


Thanks for your help and advice. I am new to PowerApps and learning the basics still.





1 ACCEPTED SOLUTION

Accepted Solutions
timl
Super User III
Super User III

Hi Connor,

Yes, this is possible. The way to do this is to set the Items property of your dropdown to a data source that includes both your ID and Text values.  Let's say that you set the Items property of your dropdown to a 'Products' table that looks like this:

Products.PNG

 

In your dropdown, you would set the Value property to the field that you want to display (ProductDesc in this example).

Products1.PNG

 

In your textbox, you can then retrieve the ProductID using the following syntax:

Dropdown2.Selected.ProductID

 

 

View solution in original post

1 REPLY 1
timl
Super User III
Super User III

Hi Connor,

Yes, this is possible. The way to do this is to set the Items property of your dropdown to a data source that includes both your ID and Text values.  Let's say that you set the Items property of your dropdown to a 'Products' table that looks like this:

Products.PNG

 

In your dropdown, you would set the Value property to the field that you want to display (ProductDesc in this example).

Products1.PNG

 

In your textbox, you can then retrieve the ProductID using the following syntax:

Dropdown2.Selected.ProductID

 

 

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (35,290)