Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

Update field when lookup selection changes

(2) ShareShare
ReportReport
Posted on by 19
Hello, 
I have 2 SharePoint lists: incidents and suppliers. 
 
The suppliers list has fields Name, primaryEmail, and some others.
 
The incident list has a supplier lookup field that relates to the name field from the suppliers list. The incident list also has a primaryEmail field that does not relate back to the suppliers table. The reason it does not relate is because at the time of the incident, we need to save the primary email. At some point in the future, the supplier's primary email may change, but we do not want it to change on any previous incidents.
 
On my form, I have a combobox for the supplier name to allow the user to select a supplier, and I have a textbox for the primary email which needs to populate when the supplier name is changed.
 
How do I set the primaryEmail in the form when the user changes the supplier selection?
 
Sorry if this seems a rudimentary question, but I am very new to Power Apps and am still learning.
Thanks
Kevin
Categories:
  • Verified answer
    WarrenBelz Profile Picture
    WarrenBelz 144,858 on at
    Update field when lookup selection changes
    You would set the Default of the email text box to look up the relevant email
    LookUp(
       SupplierList,
       NameField = YourDropdownSelection
    ).EmailField
    then OnChange of the drop-down
    Reset(YourTextBox)
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Kickstarter Events…

Register for Microsoft Kickstarter Events…

Tuesday Tip #12 Start your Super User…

Welcome to a brand new series, Tuesday Tips…

Tuesday Tip #13 Writing Effective Answers…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 144,858

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,505

Leaderboard