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 / Keep New Mode after Su...
Power Apps
Answered

Keep New Mode after Submit

(0) ShareShare
ReportReport
Posted on by 143

I have a Canvas app that I am using the same screen for Edit and New.  Is there a way to make the form presented to the user stay in New Mode after they click the Save button and the form submits?  I tried the code below and the message shows correctly depending on whether the form was in Edit Mode or New Mode, but the Reset Form doesn't do anything.

 

SubmitForm(Form1);If(Form1.Mode = FormMode.Edit, Notify("Successfully Updated", Success), Notify("Successfully Added", Success);ResetForm(Form1))

I created a variable on visible to capture the original mode (varOriginalMode) but I can't seem to stop the transition to Edit mode.  I have a button that would allow the form to reset but how do I force the Mode to New?

 

I searched the forum and I don't see this question although it seems like someone would have asked this before.  If a user wants to enter multiple new entries, they would have to go back to the main form to click the New button rather than stay on the form and create consecutive new entries.

Categories:
I have the same question (0)
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @rbrooks66 

    Do not include anything other than SubmitForm(Form1) in your button.   Anything else should be included in the OnSuccess property of your form.

    I recommend: Notify("Submission Successful",Success);NewForm(Form1)

  • rbrooks66 Profile Picture
    143 on at

    Thanks, I see what you're saying, but that doesn't help me with the problem that I posted about.

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @rbrooks66 

    I made an addition.

  • rbrooks66 Profile Picture
    143 on at

    Thanks!  I don't know why that didn't work for me before because I swear I tried that.  But, it works and I appreciate you taking the time!

     

    Rob

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
Haque Profile Picture

Haque 85

#2
WarrenBelz Profile Picture

WarrenBelz 76 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard