HI Everyone,
I have a gallery to display a set of questions.
I also have 'Previous' and 'Next' buttons to navigate through these questions.
My goal is to divide the questions into groups of four and use the 'Next' button to display the subsequent set of questions. Similarly, the 'Previous' button should take the user back to the previous set.
I want to divide the set of questions into 4 and on click of next button I want to show the next set of questions
(Please Not the data is stored in a way where we can't use form ,only gallery is possible Form is i my scenario)
Could anyone provide a solution or guide me on how to implement this functionality?
Thank you for your assistance!
Hi @Danny_Dicaprio ,
Gallery items is a collection eg COLdata, having ID or SL no.
On Visible of the screen : set(prev,0); set(next,4)
Gallery Items: Filter(COLdata, ID>prev && ID<=next)
On Select of next button : set (prev,prev+4); set(next,next+4)
On Select of prev button : set (prev,prev-4); set(next,next-4)
NOTE: disable the next btn if it has reached the max limit and disable prev if it has the frst set of data.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
hi @Danny_Dicaprio ,
you can follow this link to implement pagination in the gallery
https://rezadorrani.com/index.php/2021/01/05/power-apps-paginated-gallery/
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
WarrenBelz
146,660
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,999
Most Valuable Professional