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 / EditForm is Creating N...
Power Apps
Answered

EditForm is Creating New Item

(1) ShareShare
ReportReport
Posted on by 35

Hello .. new to PowerApps and having an odd issue.  When I am trying to EDIT a record "SubmitForm(FormEditCase)", on submit it is creating a NEW record.  Any advice would be appreciated.

 

Thanks..

 

 

Categories:
I have the same question (0)
  • v-monli-msft Profile Picture
    Microsoft Employee on at

    Hi @GoBlueByrd,

     

    This is the expected behavior that after you submit the content in editform it will create a new item/record to the DisplayForm(data source also). This is what editform used for. 

     

    For your reference:

    https://powerapps.microsoft.com/en-us/tutorials/function-form/

    https://powerapps.microsoft.com/en-us/tutorials/control-form-detail/

     

    Regards,

    Mona

  • GoBlueByrd Profile Picture
    35 on at

    Per the link (instructions shown below) .. using SubmitForm when in EditForm mode, the record should editted/modified, not create a new record, which is happening to me.

     

    I've searched thru all my settings and can not find why records are being created when they should be modified.

     

    Any help to what I might be missing to look for?

     

    Thanks ..

     

     

    EditForm

    The EditForm function changes the Form control's mode to FormMode.Edit. In this mode, the contents of the Form control's Item property are used to populate the form. If the SubmitForm function runs when the form is in this mode, a record is changed, not created. FormMode.Edit is the default for the Form control.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @GoBlueByrd

     

    Can you post some screenshot of the form? What is the Item property set to? What is the DefaultMode of the form? How do you access the form? Do you have NewForm(), ResetForm() or EditForm() somewhere?

  • GoBlueByrd Profile Picture
    35 on at

    Hopefully this helps ..

     

    Below is the main gallery screen with a filtered list.

    I've captured the ITEMS command.

     

    Gallery ItemsGallery Items

     

    The gallery item button is programmed to go to the Detail Screen

     

     

    Gallery Navigate On SelectGallery Navigate On Select

     

    The details screen populates fine .. I've captured the DATASOURCE command.

     

     

    Detail View SourceDetail View Source

     

    The EDIT PROJECT button is programmed as seen below

    Note that I am using EditForm command, which should edit the Sharepoint list entry, not create a new one.

     

    Detail View Navigate to Edit FormDetail View Navigate to Edit Form

     

    The EditForm populates correctly with the fields.

     

     

    Edit Form Data SourceEdit Form Data Source

     

    Changes are made to the fields and the SAVE button command is shown below, which is SUBMITFORM.

    Expectation is that the list item is modified, however, a new list item is being created.

     

     

    Edit Form Submit CommandEdit Form Submit Command

     

    Thanks for any help that can be provided.

     

  • GoBlueByrd Profile Picture
    35 on at

    Hopefully this helps ..

     

    Below is the main gallery screen with a filtered list.

    I've captured the ITEMS command.

     

    Gallery ItemsGallery Items

     

    The gallery item button is programmed to go to the Detail Screen

     

     

    Gallery Navigate On SelectGallery Navigate On Select

     

    The details screen populates fine .. I've captured the DATASOURCE command.

     

     

    Detail View SourceDetail View Source

     

    The EDIT PROJECT button is programmed as seen below

    Note that I am using EditForm command, which should edit the Sharepoint list entry, not create a new one.

     

    Detail View Navigate to Edit FormDetail View Navigate to Edit Form

     

    The EditForm populates correctly with the fields.

     

     

    Edit Form Data SourceEdit Form Data Source

     

    Changes are made to the fields and the SAVE button command is shown below, which is SUBMITFORM.

    Expectation is that the list item is modified, however, a new list item is being created.

     

     

    Edit Form Submit CommandEdit Form Submit Command

     

    Thanks for any help that can be provided.

     

  • Verified answer
    GoBlueByrd Profile Picture
    35 on at

    I found the issue .. I had to add in a field for "ID" that is just for reference.

    Once I added that field .. Submitform(Editform) modified the Sharepoint Item rather than creating a new one.

  • Fbelay Profile Picture
    17 on at

    Where did you add the field?  Can you provide a little more detail?

  • uyentpk Profile Picture
    24 on at

    Where did you add the ID field? I am having the same problem. Can you please provide a more detailed instruction? 😞

  • uyentpk Profile Picture
    24 on at

    Okay, this is how it works for me. I set the Items property of the form to Gallery3.Selected, because I get to the form from another list. I think you need to play around with the Items property of the form in order to correctly select the existing record. Hope it helps.

  • GoBlueByrd Profile Picture
    35 on at

    I added the field at the bottom of my form, but then made it "hidden" so that it does not appear to the person using the form.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 181 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 112 Super User 2026 Season 2

Last 30 days Overall leaderboard