# Getting Next/Previous buttons display data from a RG to a Group

**URL:** <https://forum.bubble.io/t/getting-next-previous-buttons-display-data-from-a-rg-to-a-group/25042>\
**Category:** Need help\
**Created:** [February 27, 2018, 12:48am UTC](https://forum.bubble.io/t/getting-next-previous-buttons-display-data-from-a-rg-to-a-group/25042 "2018-02-27T00:48:06Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![cheskiefisch](https://avatars.discourse-cdn.com/v4/letter/c/848f3c/32.png) [@cheskiefisch](https://forum.bubble.io/u/cheskiefisch)\
**Post date:** [February 27, 2018, 12:48am UTC](https://forum.bubble.io/t/getting-next-previous-buttons-display-data-from-a-rg-to-a-group/25042/1 "2018-02-27T00:48:06Z")

</div>

I have a group that shows a single thing at a time, it shows the thing selected in an RG below, but i want to make it easy for the user to go to the next or previous thing by utilizing a Next/Previous button.

How do i get those buttons to “display data” using the Next/Previous thing of an RG list to a Group.

(Using an RG with 1 Row, with “Show Next/Previous” action is not applicable for my situation )

---

<div class="post-metadata">

**Author:** ![NigelG](https://avatars.discourse-cdn.com/v4/letter/n/ea5d25/32.png) [@NigelG](https://forum.bubble.io/u/NigelG)\
**Post date:** [February 27, 2018, 6:59am UTC](https://forum.bubble.io/t/getting-next-previous-buttons-display-data-from-a-rg-to-a-group/25042/2 "2018-02-27T06:59:34Z")

</div>

Have a custom state on the page, which is numeric.

Set the state to 1 on load. Buttons +1 and -1 the state.

The group takes the Repeating Groups Indexed item.

[https://buildingonbubble.com/block/next-in-a-list-1519715944653x287644721744445440](https://buildingonbubble.com/block/next-in-a-list-1519715944653x287644721744445440)

---

<div class="post-metadata">

**Author:** ![gnelson](https://avatars.discourse-cdn.com/v4/letter/g/6bbea6/32.png) [@gnelson](https://forum.bubble.io/u/gnelson)\
**Post date:** [March 16, 2018, 4:21pm UTC](https://forum.bubble.io/t/getting-next-previous-buttons-display-data-from-a-rg-to-a-group/25042/3 "2018-03-16T16:21:09Z")

</div>

Hello @NigelG,

Your solution example does what I’m looking for, but I’m not understanding the instuctions. The link to the sample’s editor page takes me to (my) Bubble home page showing my apps. Can you provide another link to the sample editor?

Thanks,  
George

---

<div class="post-metadata">

**Author:** ![NigelG](https://avatars.discourse-cdn.com/v4/letter/n/ea5d25/32.png) [@NigelG](https://forum.bubble.io/u/NigelG)\
**Post date:** [March 16, 2018, 4:26pm UTC](https://forum.bubble.io/t/getting-next-previous-buttons-display-data-from-a-rg-to-a-group/25042/4 "2018-03-16T16:26:14Z")

</div>

I have updated the link to the editor, it had become corrupted, apologies.

> **[Bubble Editor - Blockexamples](https://bubble.io/page?type=page&name=nextinalist&id=blockexamples&tab=tabs-1)**
>
> Build stuff without code and launch a startup without a tech-cofounder! Bubble is a visual programing language. Instead of typing code, use a visual editor to build applications.

---

<div class="post-metadata">

**Author:** ![gnelson](https://avatars.discourse-cdn.com/v4/letter/g/6bbea6/32.png) [@gnelson](https://forum.bubble.io/u/gnelson)\
**Post date:** [March 16, 2018, 4:38pm UTC](https://forum.bubble.io/t/getting-next-previous-buttons-display-data-from-a-rg-to-a-group/25042/5 "2018-03-16T16:38:44Z")

</div>

Awesome! Thanks again!!

---

<div class="post-metadata">

**Author:** ![gnelson](https://avatars.discourse-cdn.com/v4/letter/g/6bbea6/32.png) [@gnelson](https://forum.bubble.io/u/gnelson)\
**Post date:** [March 16, 2018, 4:51pm UTC](https://forum.bubble.io/t/getting-next-previous-buttons-display-data-from-a-rg-to-a-group/25042/6 "2018-03-16T16:51:20Z")

</div>

OK @NigelG. I understand the changing of the state values, but I don’t understand what is making the focus change to the next or previous record. Will you explain that in more detail?

Thanks,  
George

---

<div class="post-metadata">

**Author:** ![NigelG](https://avatars.discourse-cdn.com/v4/letter/n/ea5d25/32.png) [@NigelG](https://forum.bubble.io/u/NigelG)\
**Post date:** [March 16, 2018, 4:55pm UTC](https://forum.bubble.io/t/getting-next-previous-buttons-display-data-from-a-rg-to-a-group/25042/7 "2018-03-16T16:55:02Z")

</div>

The state holds the index# of the repeating group item.

The Preview Group is set to show the item in the RG that has that item #

![image](https://us1.discourse-cdn.com/bubble/original/3X/0/f/0ff19c8b18e573a1828e03bdf070f3636cd2d172.png)

And the text in the repeating group has a condition to highlight the row.

![image](https://us1.discourse-cdn.com/bubble/original/3X/9/4/9489b4bb403819f350523632b518fa442e30b07a.png)

---

<div class="post-metadata">

**Author:** ![gnelson](https://avatars.discourse-cdn.com/v4/letter/g/6bbea6/32.png) [@gnelson](https://forum.bubble.io/u/gnelson)\
**Post date:** [March 16, 2018, 4:59pm UTC](https://forum.bubble.io/t/getting-next-previous-buttons-display-data-from-a-rg-to-a-group/25042/8 "2018-03-16T16:59:24Z")

</div>

OK. I get it now. Thanks for your help!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [May 8, 2018, 12:55am UTC](https://forum.bubble.io/t/getting-next-previous-buttons-display-data-from-a-rg-to-a-group/25042/9 "2018-05-08T00:55:34Z")

</div>

This topic was automatically closed after 70 days. New replies are no longer allowed.
