web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : ddySJ9MvJ8GBT0i0JqJ3iU
Power Apps - Building Power Apps
Answered

Using an Edit form to Update list item using a lookup dropdown

Like (0) ShareShare
ReportReport
Posted on 30 Nov 2021 16:07:59 by 1,360

Hello,
I have a list of items.
When I open the edit form it only displays the first record to edit.
I have a lookup on the form that a user can make a choice of what record to edit.
The issue is that when the user makes a choice from the dropdown/ lookup the form doesnt refresh to that item, it stays on the first record.

golfnutt82_0-1638288298216.png

Above you will see that it displays record 21
The lookup dropdown showing is related to a different record from the list.
Clicking on the selection should update the form to display that records metadata.
The form and the data both use the same list items.

Below is the design view.
Maybe I am going about this in the wrong way?

golfnutt82_0-1638289754656.png

The Text box left of the lookup filters the roles used in the lookup.

Categories:
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on 01 Dec 2021 at 15:18:30
    Re: Using an Edit form to Update list item using a lookup dropdown

    @golfnutt82 

    Yes. Not only can the same datasource in the dropdown be connected, but it must be selected for the form to work right.   The formulas for the connections are shown in red above each control. The Item property of the form has to reference a unique value in the table being referenced by both the dropdown and the form.  In the case of my example, a datasource called accounts is used and the field with a unique value is 'Account Number'.   

    A dropdown control is used to select a single unique record from a datasource.  Any field in the record selected in the dropdown can be referenced even though the window shows only one field.  So the Account Number can be referenced by the form's Item property Lookup(accounts, 'Account Number'= Dropdown1.Selected.'Account Number' ) even though the Account Name is the one shown in the window of the dropdown. 

  • golfnutt82 Profile Picture
    1,360 on 01 Dec 2021 at 15:13:32
    Re: Using an Edit form to Update list item using a lookup dropdown

    So the dropdown can still be connected to the datasource outside the form?
    Example of the formula would be helpful!
    Thanks!

  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on 01 Dec 2021 at 00:21:41
    Re: Using an Edit form to Update list item using a lookup dropdown

    @golfnutt82 

    !.jpgThe screenshot shows a dropdown for a sample contact list.  The Items property is shown above the dropdown and the DataSource and Item properties for the form are shown above the form.  The form shows the values for the entire record selected in the dropdown. 

  • golfnutt82 Profile Picture
    1,360 on 30 Nov 2021 at 19:50:33
    Re: Using an Edit form to Update list item using a lookup dropdown

    I need to have the dropdown outside the form? 
    Can you show or explain what that means as I am sort of new at this but getting better every day from people here on the Power Apps forum. 🙂

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on 30 Nov 2021 at 18:34:02
    Re: Using an Edit form to Update list item using a lookup dropdown

    @golfnutt82 

    A form will only display a single record from a datasource.  You can select the record using a gallery, a datatable or a dropdown box  but it must be outside of the form itself as @C-Papa  says.  The DataSource of the form must be the same as the gallery, datatable or dropdown.  If you are using a dropdown to select the record, then the form should have the Item property like

    Lookup(DataSource, ID = Dropdown1.Selected.ID) 

     

  • C-Papa Profile Picture
    1,836 on 30 Nov 2021 at 16:32:19
    Re: Using an Edit form to Update list item using a lookup dropdown

    Hi, you need to have the dropdown outside of the form, the when an item is selected, you can set the selected item as a variable and use the variable in the Form Items to update the form

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2