Notifications
Announcements
Hello,I have an edit form that is also acting as a new form.What I want to do is add a new record using the SubmitForm(<formName>) function for both the new form and the edit form.Can I do what this or do I need to use the Patch function?I tried using the Submit Form function, but it wouldn't save the form data.
Hi @ChrisL58
Are you saying that your edit form works when editing a record but doesn't work when adding a new record?
If that's the case, are you calling the NewForm function prior to addig a new record?
NewForm(YourForm)
No, the default form mode is Edit but I have some logic where I change the mode so that the form opens up as a new form.
The formula that you posted looks ok to me. I'd suggest that you run the Monitor tool to see if that discloses any more detail as to why adding a new record fails. Perhaps the form is missing some mandatory value that's required for a new record, or there may be some other server validation failure.
hey @ChrisL58
maybe this video also helps:
Power Apps Gallery Edit Form Tutorial for Beginners (youtube.com)
Let me know if my answer helped solving your issue.If it did please accept as solution and give it a thumbs up so we can help others in the community.Greetings
Due to the nature of the data being collected the Submit Form property wasn't the right choice so I needed to write a patch statement, which worked for me.
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 717 Most Valuable Professional
Michael E. Gernaey 329 Super User 2025 Season 2
Power Platform 1919 268