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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

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

Top Solution Authors
Top Kudoed Authors
Users online (45,950)