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 / 'Submit new and edit' ...
Power Apps
Unanswered

'Submit new and edit' button

(0) ShareShare
ReportReport
Posted on by 24

I would like to have a button that submits a form, and refreshes the data to allow people to continue editing the item they've just added - essentially taking them from the 'New' to 'Edit' form mode for the same list item.

 

The form is based on a Sharepoint list, and has a gallery beneath it filtered to a lookup column. The 'Add new item to gallery' and gallery only appear in edit mode.

 

The form has a button to submit and close; and a button to submit and add new. How might I add a 'Submit and edit' button too?

Categories:
  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @adampope - you can use a Variable to populate the Edit Form with the item that was just created. On the OnSelect property of your Gallery, use:

     

    UpdateContext({ctx_thisitem: ThisItem})

     

    On the Item property of your Form, use:

     

    ctx_thisitem

     

    On the OnSuccess property of your Form, use:

     

    UpdateContext({ctx_thisitem: Self.LastSubmit});

     

     

    Given your Edit Form control and Gallery control are on the same screen, the above example uses a Context Variable. But you can also choose to use a Global Variable if you need to pass the variable across screens.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard