I have created pagination setup for repeating group
in one page 5 records should be display and i have add a button for next 5 records to be display like that so on
I have 22 total records so in first page it displays 1 to 5 records then we click on next button it display for me 6 to 10 again 11 to 15 and 16 to 20 but at the last page next 21 and 22 record should be display but i am getting 17 to 22 records displaying but i need to display only 2 records.
And again when we click on previous button i need to get reverse process 16 to 20 and 6 to 10 and 1 to 5 like so on