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 / How to stay on the sam...
Power Apps
Unanswered

How to stay on the same form even after submitting the form in SharePoint List.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi All,

 

I've a PowerApps form and a customized submit button, so I'm not using OOO submit button so after filling details in the form when I click on submit so it should save the data in the SharePoint List without closing the form.
As by default SubmitForm() closes the form, so need to stop that from happening.

Thanks in advance.

Categories:
I have the same question (0)
  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi,

    To resolve this issue you will have to click on your SharePointForm1 control and go to OnSuccess property

    Remove RequestHide() from the formula that is written over there

    i think it should work 

    if you want to add any other code like Navigate(ScreeName) you can do that here

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks @NandiniBhagya20 for your reply, I tried this and it's working though after submitting I wanted to display values which I filled, so it shows some random values from other items not the current values which I filled, where am I going wrong?

  • vish3027 Profile Picture
    434 on at

    @Anonymous use form.lastsubmit to get last submitted record. You need update items property of form with lastsubmit also you might need to change form mode from New to Edit

     

    If you have any other code Items property of form then you need to work on that so you can set form.Last submit

     

  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi, 

    You can make below changes - 

    On Item property of sharepointform1 you can add - If(varMode="New", LookUp(SPListName, ID = SharePointForm1.ID), <code that was there before in item property copy and paste it here>)

    On select property of Submit button -

    If(SharePointForm1.Mode=FormMode.New, Set(varMode,"New"), Set(varMode, "Else")); SubmitForm(SharePointForm1)

    On Success property of SharePointForm1 you can remove ResetForm(Self) formula 

    I think by making above changes it should work 

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard