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 / Form Mode changes from...
Power Apps
Answered

Form Mode changes from NEW and EDIT everytime a submit...

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello all,

 

I am not sure why its doing it but everytime I submit a new entry via form, the form reverts the FormMode to Edit. Is this a normal behaviour?

 

Thanks!

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I do have a New button that uses NewForm(Form2) on select. Now, I can fill out that form presented as new, but after I hit the submit button, my sharepoint will be updated with correct data. However, the form reverts the mode from FormMode.New to FormMode.Edit. I manage to see this as I have created a text that shows the form mode.

    This is an issue as I have some If statements that looks at formmode. Reverting the form to Edit screws on other functions I have... I appreciate the assistace

  • Verified answer
    mick_swartz Profile Picture
    184 on at

    Essentially...yes this is expected functionality of SubmitForm.

     

    Easiest way, in my opnion, is to use patch. So, on the submit button "OnPress" something along the lines of:

    Patch(
     <SharePoint List>,
     Defaults(SharePoint List),
     Form.Updates
    );
    ReestForm(Form);

    This should submit the data to the SharePoint list all the same, and then reset the form to handle a new entry, always keeping it as FormMode.New.

     

    If that doesn't work, you can use variables to set the form mode, which I can walk you through as well if you'd like.

     

    Hope that helps!

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,041

#2
11manish Profile Picture

11manish 676

#3
Valantis Profile Picture

Valantis 655

Last 30 days Overall leaderboard