cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kman42
Level: Powered On

Form: display a different value than underlying datasource

I have a simple form with Date, Comment, and Person_ID. I can get this to display and work fine, editing the underlying data table when I press submit. Instead of displaying Person_ID on the form, however, I want to display a lookup from another table to display the name in a drop-down menu. When I submit the form though, I want to submit Person_ID.

 

I'm a little confused how to get this working with the data cards. Can someone point me in the right direction?

 

Thanks!

1 REPLY 1
Super User
Super User

Re: Form: display a different value than underlying datasource

@kman42 

This is typically what a Lookup column will do for you in your list.  If you have a Lookup column defined and set to the other list, then when you create an EditForm in your App, it will automatically add all of that functionality.

 

If that's not and option and you are going to do it by hand, then you will need to put a ComboBox or DropDown box in your form and set its Items property to get the list of names and ID's from the other list.  

You'll want to then set the update properties of the DataCard that has this control in it to submit the ID from the selected item in the dropdown/combobox.  

Then the only other hurdle is to set the Default Items properties to - if it's an edit of existing data - the record that matches the ID of the person.  

 

See if you can just set up a Lookup column first like mentioned above.  If not and you jump into the next suggestion and have issues, just post back if you get stuck.

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 214 members 5,239 guests
Please welcome our newest community members: