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 / Power Apps form which ...
Power Apps
Unanswered

Power Apps form which have Default Mode = "New" and Item = Lookup(...) will update an item instead of creating new item when i do a SubmitForm

(0) ShareShare
ReportReport
Posted on by 3,514

I have this form, which have Default Mode = New and its Item property = "Lookup(large123,ID=5691)" >>  where the idea is that i want to default the form to have the values from the item with Id = 5691.. but currently when i issue SubmitForm(Form1) >> the item with ID = 5691 will get updated instead of creating a new item, although the Default Mode of the item = New and not Edit. any advice?

 

johnjohn123_0-1664919974369.png

 

 

Thanks

Categories:
I have the same question (0)
  • Ginko Profile Picture
    221 on at

    Does your data source have a Primary Key column? If the primary key is ID, then its seeing 5691 and choosing to overwrite it. If you are asking your form to default to an existing ID and entry, then it makes sense to update regardless of your form's type.

     

    Make sure your Primary Key isn't the same as when you are using to pull defaults in the form. If not this, try using a Patch function instead of form submission, but patch the individual fields in the form?

  • Mira Ghaly Profile Picture
    11,415 Moderator on at

    @johnjohn123 

    Providing the Item will always switch the mode to update .. regardless of the default.

    So if you wanna show default values in the form , add a default value to each control and do not set the item property.

  • johnjohn123 Profile Picture
    3,514 on at

    @Mira_Ghaly the weird thing, is that if i am in Design mode the item will get updated, but if i publish the app and i click on submit on runtime mode nothing will happen, no update or create will happen

     

  • johnjohn123 Profile Picture
    3,514 on at

    @Ginko the weird thing, is that if i am in Design mode the item will get updated, but if i publish the app and i click on submit on runtime mode nothing will happen, no update or create will happen

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

Jump in, show your community spirit, and win prizes!

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 432

#2
Valantis Profile Picture

Valantis 362

#3
timl Profile Picture

timl 337 Super User 2026 Season 1

Last 30 days Overall leaderboard