# Choice displaying Name, but to populate Unique Identifier to target field

**URL:** <https://community.glideapps.com/t/choice-displaying-name-but-to-populate-unique-identifier-to-target-field/4521>\
**Category:** Feature Requests\
**Created:** [February 12, 2020, 6:40am UTC](https://community.glideapps.com/t/choice-displaying-name-but-to-populate-unique-identifier-to-target-field/4521 "2020-02-12T06:40:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Budi\_Li](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/budi_li/32/3471_2.png) [@Budi\_Li](https://community.glideapps.com/u/Budi_Li)\
**Post date:** [February 12, 2020, 6:40am UTC](https://community.glideapps.com/t/choice-displaying-name-but-to-populate-unique-identifier-to-target-field/4521/1 "2020-02-12T06:40:07Z")

</div>

Hi,

Can we set a choice containing a list of components’ value, and when it’s chosen, to populate the component’s Unique Identifier?

Example:  
Product sheet has Product ID (Unique Identifier) and Product Name.

From Order Line Items screen, we display a Choice component to user.  
The Choice component will display list of Product Name.  
When a Product Name is clicked, Choice component will populate the corresponding Product ID to the field.

Currently, I find that I have to display Product ID to populate the Product ID to the field.  
How to set Choice to display list of Product Name, however when clicked, to populate Product ID to the field?  
Please kindly advise?

Thank you

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [February 12, 2020, 7:23am UTC](https://community.glideapps.com/t/choice-displaying-name-but-to-populate-unique-identifier-to-target-field/4521/2 "2020-02-12T07:23:25Z")

</div>

Yes, I have a couple of app ideas that I’m waiting for something like this. It has been requested before. You can use a lookup column in the data tab or a vlookup in the sheet to get the UUID of the product name, but if you would ever change the product name, the lookup would stop working for older records. I think we need a feature like this. It’s fundamental to any dropdown on web and PC apps, so it makes sense that the choice component should work the same.

> [@Choice Component - allow key display pairs](https://community.glideapps.com/t/choice-component-allow-key-display-pairs/581):
>
> In the interest of some kind of data normalization and using key links in your tables/sheets it would be nice to display pretty text for the choice dropdown but save a key value to the database/sheet. This is more in line with how it is implemented in HTML which is what is ultimately driving things under the covers. This is the idea I’m talking about. The user would see the long text but the save would be the shorter. All that you would have to do is allow the user to optionally select a sec…
