cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Bhanes22
Helper II
Helper II

Prevent Gallery from saving spot

Hi, I have a situation in which I have a gallery full of questions a user fills out and once they are on the last question they go to the next page to put in comments and submit their 'project'. Issue is that unless they refresh the whole app or close and re open when they go back in to create a new project or edit an existing one, when they get to the screen with the gallery of questions, it places them at their last spot, which is usually the last question instead of at the top of the gallery. Is there any way to prevent this? 

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User
Super User

@Bhanes22 

This is because every control in the app will retain its state unless you force it otherwise.

 

You can utilize the Reset function to Reset your gallery i.e.  Reset(yourGalleryNameHere)

When you issue a Reset on a control, it will reset the control back to the Default property value.  If you have nothing in your Gallery Default, then it will revert back to the first record.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

1 REPLY 1
RandyHayes
Super User
Super User

@Bhanes22 

This is because every control in the app will retain its state unless you force it otherwise.

 

You can utilize the Reset function to Reset your gallery i.e.  Reset(yourGalleryNameHere)

When you issue a Reset on a control, it will reset the control back to the Default property value.  If you have nothing in your Gallery Default, then it will revert back to the first record.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

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.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

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 (5,541)