- First you have to get the first item of the gallery to start with, you can hold it in a variable in some where in your app , for example in the
Onvisible
property of your screen
Use this formula where Gallery1 is the name of your gallery that displays the items
Set(CurrentGalleryItem,First(Gallery1.AllItems))
- In the Onselect property of next button write this formula that will get the next item in the gallery ,
Use this formula in the Onselect property of your button
Set(CurrentGalleryItem,
If(
CurrentGalleryItem.ID = Last(Gallery1.AllItems).ID,
First(Gallery1.AllItems),
First(Filter(Gallery1.AllItems, ID > CurrentGalleryItem.ID))
))
Finally in the item property of your form write CurrentGalleryItem
For more details Click here for a detailed example that will solve this issue