# Configure "Go to next row" button

**URL:** <https://community.glideapps.com/t/configure-go-to-next-row-button/67680>\
**Category:** Ask for Help\
**Created:** [November 10, 2023, 8:00pm UTC](https://community.glideapps.com/t/configure-go-to-next-row-button/67680 "2023-11-10T20:00:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Waleon](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/waleon/32/66315_2.png) [@Waleon](https://community.glideapps.com/u/Waleon)\
**Post date:** [November 10, 2023, 8:00pm UTC](https://community.glideapps.com/t/configure-go-to-next-row-button/67680/1 "2023-11-10T20:00:48Z")

</div>

Can I configure a button to move forward to see the next record or row? Tanks for your help

---

<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:** [November 10, 2023, 8:38pm UTC](https://community.glideapps.com/t/configure-go-to-next-row-button/67680/2 "2023-11-10T20:38:03Z")

</div>

For starters you will need to use this method to create row numbers (use case #2).

> [@How do I create an auto-incrementing row number with Glide Tables?](https://community.glideapps.com/t/how-do-i-create-an-auto-incrementing-row-number-with-glide-tables/39572):
>
> This is a question that comes up a lot, so creating this topic to use as a reference. Typically, there are two distinct use cases when it comes to auto-incrementing row numbers. Use Case 1: – We need to generate a Part Number, or an Order Number, or an Employee ID. Once the number is generated, it should never change, even if rows are deleted. – The general approach for this use case is to maintain a static counter, use it to craft a suitably formatted ID, and increment it by one every time…

Then what you would do is add a math column to add 1 to that index number. Then use a Single Value column to retrieve the RowId from the array where you get the nth item (using the math column value) from start of the array. The result should be the RowID of the next row. Once you have the RowID of the next row, then you can create a single relation the links the current row to the next row. Finally create a button with a ‘Show Detail Screen’ action that refers to that relation.

---

<div class="post-metadata">

**Author:** ![Ifeoluwa](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ifeoluwa/32/65264_2.png) [@Ifeoluwa](https://community.glideapps.com/u/Ifeoluwa)\
**Post date:** [November 14, 2023, 8:58pm UTC](https://community.glideapps.com/t/configure-go-to-next-row-button/67680/3 "2023-11-14T20:58:50Z")

</div>

Thank you for this!!!

---

<div class="post-metadata">

**Author:** ![taka](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/taka/32/67941_2.png) [@taka](https://community.glideapps.com/u/taka)\
**Post date:** [December 18, 2023, 10:58am UTC](https://community.glideapps.com/t/configure-go-to-next-row-button/67680/4 "2023-12-18T10:58:20Z")

</div>

@Jeff_Hager

Thank you for the excellent exchange.  
I have an additional question.

I would like to put a button on each account that takes me to the next “detail”.

I was able to specify the “next content” using the “Query” function, but the “Query” column cannot be selected as the destination for the “detail”.

Is there a solution?

 ![画像3](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/0/b0a24363cdb92dbd3fe5166a89830f8b2d66c933.jpeg)

---

<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:** [December 18, 2023, 2:15pm UTC](https://community.glideapps.com/t/configure-go-to-next-row-button/67680/5 "2023-12-18T14:15:56Z")

</div>

A Query column does not return the equivalent of a ‘single relation’, even though you have it set up to match only one row. I believe a Query column is similar to a multiple relation. Because of that, you will have to add a ‘Single Value → Whole Row’ column which will return the first row from the Query column. The it will act like a single relation and I think you should be able to point your button to that Single Value column.

The alternative is to create a template column joining the account ID and the ‘next number’ column together, then create a single relation instead of a query.
