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

Notifications

Announcements

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

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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard