cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Prepopulate Lookup Column value in Main List Form Control Power App

Hi Family,

I am working on the below scenario.

 

"List A" has ID, Name columns with Employee data.

"List B" has all the main columns related to my App & I created ID, Name columns as lookup columns in "List B" to get all the data of IDs, Names from "List A".

 

Now in my app, I created a Form control in which I am displaying ID, Name fields.

 

Now My Requirement is: whenever I select a value from drop down options in ID field I need to prepopulate the relative Name dropdown value in the form & submit data into Main List "List A". how can I achieve this?

 

I hope I made this requirement clear.

Thankyou!

1 ACCEPTED SOLUTION

Accepted Solutions
v-qiaqi-msft
Community Support
Community Support

Hi @Anonymous,

I am so confused that the main listA has employee data including ID and Name, why you want to save the ID and Name data from the form to List A?

 

Get ID and Name from ListA and then save ID and Name to List A? So confusing.😂

 

To prepopulate the Name dropdown, set the DefaultSeletcedItems property as below:

Filter(LisA,ID=ComboBoxID_listB.Selected.Id).Name

Anyway, set the OnSelect property of the submit button as below:

 

Patch(ListA,Defaults(ListA),{ID:ComboBoxID_ListB.Selected.Id,Name:ComboBoxName_ListB.Selected.Value})

 

Best Regards,
Qi

View solution in original post

1 REPLY 1
v-qiaqi-msft
Community Support
Community Support

Hi @Anonymous,

I am so confused that the main listA has employee data including ID and Name, why you want to save the ID and Name data from the form to List A?

 

Get ID and Name from ListA and then save ID and Name to List A? So confusing.😂

 

To prepopulate the Name dropdown, set the DefaultSeletcedItems property as below:

Filter(LisA,ID=ComboBoxID_listB.Selected.Id).Name

Anyway, set the OnSelect property of the submit button as below:

 

Patch(ListA,Defaults(ListA),{ID:ComboBoxID_ListB.Selected.Id,Name:ComboBoxName_ListB.Selected.Value})

 

Best Regards,
Qi

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (3,305)