cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Continued Contributor
Continued Contributor

Using Drop Downs. How do I send back a different value than that which is displayed?

I have a Drop Down control in my Canvas App.

It displays the CompanyName values from a collection.

The collection has 2 fields. ID & CompanyName.

However, the value I want to save, from the same record, is the ID field.

How do I specify this?

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

Hi @stapes 

Dropdown controls contain an entire record but only display one field in the window.  The ID field is accessible as follows: 

Dropdown1.Selected.ID

 

View solution in original post

3 REPLIES 3
Highlighted
Super User III
Super User III

Hi @stapes 

Dropdown controls contain an entire record but only display one field in the window.  The ID field is accessible as follows: 

Dropdown1.Selected.ID

 

View solution in original post

Highlighted
Responsive Resident
Responsive Resident

You put that info in the Update property of the Card - the part that holds the text input of the form

Highlighted
Super User II
Super User II

@stapes 

 

You can mention the following in the Update property of the drop down card:

LookUp(CollectionName, CompanyName=ddField.Value).ID

 

Also, in the default value of the card, you should do similar formula:

LookUp(CollectionName, ID=ThisItem.<field name>).CompanyName

 

Give a try and post the details.

 

Regards

Krishna Rachakonda

If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.

 

 

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (10,612)