cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

How to submit form without resetting to first record?

When I check a box I have it set to submit the form. I would like to check multiple boxes with submit form option. Thus it is imperative the form reverts to the record it was initially on, not the first record.

 

I have on success of the form set to false, but the record still resets to the first record.

 

Is this a glitch? What can I do?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

Re: How to submit form without resetting to first record?

@AlexMcomm 

If you are not using a gallery to navigate to a record just skip step #1 and do only steps #2 & 3.

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

3 REPLIES 3
Highlighted
Super User III
Super User III

Re: How to submit form without resetting to first record?

@AlexMcomm 

Assuming you navigated to the form using a gallery put this code in the OnSelect property of your gallery.

Set(currentID, Gallery1.Selected.ID);
Navigate(your_form_screen, None);

 

Put this code in the Item property of your form to make it show the current record.

LookUp(your_datasource, ID = currentID)

 

Finally, put this code in the OnSuccess property of your form to tell it what record to show and then reset the form.

Set(currentID, Form1.LastSubmit.ID);
ResetForm(Form1);

 

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

 

 

 

 

Highlighted
Frequent Visitor

Re: How to submit form without resetting to first record?

I am not using a gallery to represent my data. Just a form.

 

 

Highlighted
Super User III
Super User III

Re: How to submit form without resetting to first record?

@AlexMcomm 

If you are not using a gallery to navigate to a record just skip step #1 and do only steps #2 & 3.

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,854)