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 Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

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.

Users online (1,501)