cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
EdK99
Helper I
Helper I

Submit Form without resetting

Hello,

 

I am building an app to add reports to a list.

 

I am using two buttons to submit the form

1- "Submit" Button: Submits and Resets the form

2- "Add Page" Button: Submits form, but retains the values of the submitted form so that the next form you submit could have the exact same values of the previous form.

 

My problem is that on the first click of the Add Page button it does submit the form and it does retain the values, but on the second click it starts editing the same record instead of adding new copies of the form

1 ACCEPTED SOLUTION

Accepted Solutions
theapurva
Super User
Super User

hello @EdK99 ,
you can use the below code, this will always create a new item:

Patch(yourListName,Form1.Updates)
-----------------------------------------------------------------------------------
Liked My Solution? Click on the Thumbs Up below.
Did I answer your Question? Please Click Accept as Solution below

Want to Support me? Buy Me A Coffee

View solution in original post

2 REPLIES 2
theapurva
Super User
Super User

hello @EdK99 ,
you can use the below code, this will always create a new item:

Patch(yourListName,Form1.Updates)
-----------------------------------------------------------------------------------
Liked My Solution? Click on the Thumbs Up below.
Did I answer your Question? Please Click Accept as Solution below

Want to Support me? Buy Me A Coffee

It worked! even retained the dropdown values. Thanks a lot.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,766)