# How to replicate glide university prev/next buttons in a detailed screen?

**URL:** <https://community.glideapps.com/t/how-to-replicate-glide-university-prev-next-buttons-in-a-detailed-screen/71326>\
**Category:** Ask for Help\
**Created:** [March 1, 2024, 2:00pm UTC](https://community.glideapps.com/t/how-to-replicate-glide-university-prev-next-buttons-in-a-detailed-screen/71326 "2024-03-01T14:00:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nstnct](https://avatars.discourse-cdn.com/v4/letter/n/ea666f/32.png) [@nstnct](https://community.glideapps.com/u/nstnct)\
**Post date:** [March 1, 2024, 2:00pm UTC](https://community.glideapps.com/t/how-to-replicate-glide-university-prev-next-buttons-in-a-detailed-screen/71326/1 "2024-03-01T14:00:11Z")

</div>

Hello,

Do you know how to replicate glide university prev/next buttons in a detailed screen? I managed to make the items change using @Jeff_Hager post:

> [@Next/Previous record/details screen buttons](https://community.glideapps.com/t/next-previous-record-details-screen-buttons/68411/9):
>
> Start by building the columns for the 2nd use case in the following post. Once you have that, create 2 math columns. One to subtract 1 from the index, and one to add 1 to the index. Next, create 2 single relation columns. One that links the first math column to the index column, and a second relation that links the other math column to the Index. Now you should have two relations that each point to the row above and below the current row. Now on your detail screen add two buttons. Both …

The problem is that I don’t know what to do when I have rows in different categories. Like in glide university they have many courses, how to make them not to interfere with one another when I switch items?

Here’s glide prev/next buttons:

> **[Glide University](https://learn.glideapps.com/dl/courses/s/6f32f1/r/723lK8XmRcKJxZfK6jimbg/s/8bbbff/r/zMDwNkILSc6rfmjRvAqpFw)**

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [March 1, 2024, 3:09pm UTC](https://community.glideapps.com/t/how-to-replicate-glide-university-prev-next-buttons-in-a-detailed-screen/71326/2 "2024-03-01T15:09:43Z")

</div>

I think the simplest solution would be to create two template columns. One that joins the category name/ID to the previous number, and one that joins the category name/ID to the next number. Then switch your relation columns to use the template columns.

But, that’s only going to get you so far. This is assuming that all of your rows are in sequence, where each category is grouped together with each row in each category in the order you want. If you start to add rows to a category out of order or intermixed with other categories, then this is not going to work well at all.

For a more robust solution, it would require rethinking the logic. Would you be opposed to manually filling in the previous and next numbers? Is order of each item important within a category? I ask because with something like the university courses, order of each item in a category is crucial. Or is order of items not important to you as long as they are grouped by category? I think it would help to understand your use case a little better to determine the proper method.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [March 14, 2024, 9:59am UTC](https://community.glideapps.com/t/how-to-replicate-glide-university-prev-next-buttons-in-a-detailed-screen/71326/3 "2024-03-14T09:59:42Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
