web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Previous and next butt...
Power Apps
Unanswered

Previous and next button for gallery

(0) ShareShare
ReportReport
Posted on by

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.

 

Danny_Dicaprio_0-1717128113493.png

 

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!

Categories:
I have the same question (0)
  • anandm08 Profile Picture
    1,936 Super User 2024 Season 2 on at

    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.

  • Shravyashree_01 Profile Picture
    174 Moderator on at

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard