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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Edit Form takes value ...
Power Apps
Answered

Edit Form takes value based on last location

(0) ShareShare
ReportReport
Posted on by 227

I'm a bit stuck on a problem,

So I have an Edit Form, that gets the ID from the Gallery and puts up an Edit Form

I also have a New Form, which when generated goes to an Edit Form 

How do I have the Items in my Edit Form - to be a lookup, either on the first gallery if that was last click, or from the lookup of the new form

Hope this makes sense?

Please and thank you

Jese

Categories:
I have the same question (0)
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @jesenavaranjan,

    Could you please share a bit more about your scenario?

    Do you want to populate your Edit form from the Gallery or the New Form?

    I have made a test on my side, please take a try with the following workaround:

    Within your Gallery screen, set the OnSelect property of the Gallery to following:

    Set(CurrentItem, ThisItem)

    Within the New Form Screen which contains the New Form, set the OnVisible property to following:

    Set(CurrentItem, Blank())

    Within the Edit form Screen which contains the Edit form, set the Item property of the Edit form to following:

    If(
    !IsBlank(CurrentItem),
    LookUp('YourDataSource', ID = CurrentItem.ID),
    Defaults('YourDataSource')
    )

    Or

    If(
    !IsBlank(CurrentItem),
    LookUp('YourDataSource', ID = CurrentItem.ID),
    YourNewForm.Updates
    )

     

    If you could provide more details about your scenario, we could provide a proper workaround for you.

     

    Best regards,

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 525 Most Valuable Professional

#2
Haque Profile Picture

Haque 273

#3
Kalathiya Profile Picture

Kalathiya 232 Super User 2026 Season 1

Last 30 days Overall leaderboard