# I creatd a dynamic page where there are 2 buttns prev & next. I connctd the next button to the data set & its working fine but prev buttn no

**URL:** <https://forum.wixstudio.com/t/i-creatd-a-dynamic-page-where-there-are-2-buttns-prev-next-i-connctd-the-next-button-to-the-data-set-its-working-fine-but-prev-buttn-no/34422>\
**Category:** Ask the community\
**Tags:** question, code\
**Created:** [August 11, 2021, 2:12pm UTC](https://forum.wixstudio.com/t/i-creatd-a-dynamic-page-where-there-are-2-buttns-prev-next-i-connctd-the-next-button-to-the-data-set-its-working-fine-but-prev-buttn-no/34422 "2021-08-11T14:12:08Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![mazumdarsourav108](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/mazumdarsourav108/32/24467_2.png) [@mazumdarsourav108](https://forum.wixstudio.com/u/mazumdarsourav108)\
**Post date:** [August 11, 2021, 2:12pm UTC](https://forum.wixstudio.com/t/i-creatd-a-dynamic-page-where-there-are-2-buttns-prev-next-i-connctd-the-next-button-to-the-data-set-its-working-fine-but-prev-buttn-no/34422/1 "2021-08-11T14:12:08Z")

</div>

I created a dynamic page where there are 2 buttons prev & next. I connected the next button to the data set & its working fine but prev button after connecting to the dataset not working at all. I don’t know coding at all. So help me accordingly . Any help will be appreciated. Thank you in advance.

---

<div class="post-metadata">

**Author:** ![volkaertskristof](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/volkaertskristof/32/18158_2.png) [@volkaertskristof](https://forum.wixstudio.com/u/volkaertskristof)\
**Post date:** [August 11, 2021, 2:18pm UTC](https://forum.wixstudio.com/t/i-creatd-a-dynamic-page-where-there-are-2-buttns-prev-next-i-connctd-the-next-button-to-the-data-set-its-working-fine-but-prev-buttn-no/34422/2 "2021-08-11T14:18:01Z")

</div>

Hi Sourav,

Please give the following information.

Does it give an error? (Press F12 and select console)  
Does it do anything when you press the prev button?  
How is it connected to the dataset? (maybe give some images)

_Kind regards,_  
_Kristof_

---

<div class="post-metadata">

**Author:** ![mazumdarsourav108](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/mazumdarsourav108/32/24467_2.png) [@mazumdarsourav108](https://forum.wixstudio.com/u/mazumdarsourav108)\
**Post date:** [August 11, 2021, 2:38pm UTC](https://forum.wixstudio.com/t/i-creatd-a-dynamic-page-where-there-are-2-buttns-prev-next-i-connctd-the-next-button-to-the-data-set-its-working-fine-but-prev-buttn-no/34422/3 "2021-08-11T14:38:02Z")

</div>

It doesnt give any error . Actually the previous button is completely off even when i hover the mouse over it ,it doesn’t change color.

---

<div class="post-metadata">

**Author:** ![volkaertskristof](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/volkaertskristof/32/18158_2.png) [@volkaertskristof](https://forum.wixstudio.com/u/volkaertskristof)\
**Post date:** [August 11, 2021, 2:50pm UTC](https://forum.wixstudio.com/t/i-creatd-a-dynamic-page-where-there-are-2-buttns-prev-next-i-connctd-the-next-button-to-the-data-set-its-working-fine-but-prev-buttn-no/34422/4 "2021-08-11T14:50:38Z")

</div>

It looks like your button is disabled,  
Can you go below to the code panel.  
When you select the button, at the top right of the code panel there is an option you can select named : Enable.  
make sure that it is checked.

---

<div class="post-metadata">

**Author:** ![volkaertskristof](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/volkaertskristof/32/18158_2.png) [@volkaertskristof](https://forum.wixstudio.com/u/volkaertskristof)\
**Post date:** [August 11, 2021, 2:51pm UTC](https://forum.wixstudio.com/t/i-creatd-a-dynamic-page-where-there-are-2-buttns-prev-next-i-connctd-the-next-button-to-the-data-set-its-working-fine-but-prev-buttn-no/34422/5 "2021-08-11T14:51:34Z")

</div>

![](https://us1.discourse-cdn.com/wix/original/3X/4/3/43056aa8f293d72d77fc2a5d0dbf9ab35a3fd2e7.png)

---

<div class="post-metadata">

**Author:** ![mazumdarsourav108](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/mazumdarsourav108/32/24467_2.png) [@mazumdarsourav108](https://forum.wixstudio.com/u/mazumdarsourav108)\
**Post date:** [August 11, 2021, 2:55pm UTC](https://forum.wixstudio.com/t/i-creatd-a-dynamic-page-where-there-are-2-buttns-prev-next-i-connctd-the-next-button-to-the-data-set-its-working-fine-but-prev-buttn-no/34422/6 "2021-08-11T14:55:27Z")

</div>

It is already enabled.

---

<div class="post-metadata">

**Author:** ![volkaertskristof](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/volkaertskristof/32/18158_2.png) [@volkaertskristof](https://forum.wixstudio.com/u/volkaertskristof)\
**Post date:** [August 11, 2021, 3:11pm UTC](https://forum.wixstudio.com/t/i-creatd-a-dynamic-page-where-there-are-2-buttns-prev-next-i-connctd-the-next-button-to-the-data-set-its-working-fine-but-prev-buttn-no/34422/7 "2021-08-11T15:11:19Z")

</div>

I see that you removed a part of your code,  
Add }) again where the red line is.

The reason you can’t click it, meens (if i’m correct) that it is disabled somehow…  
Is it connected the the right dataset?  
try to go next and then prev? does that work?

You can always try to code it.

Select the button, Go to the code panel, At the right side you can see the onClick event handler.  
Click it and press enter,  
A code block will be added to the code pannel.

Inside add the following:

$w(“#yourDatasetname”).previousPage()

yourDatasetname is the name you gave it if you changed it,  
Otherwhise it will be dataset1

Also disconnect it from the dataset so only the code will do the work.

_Kind regards,_  
_Kristof._

---

<div class="post-metadata">

**Author:** ![mazumdarsourav108](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/mazumdarsourav108/32/24467_2.png) [@mazumdarsourav108](https://forum.wixstudio.com/u/mazumdarsourav108)\
**Post date:** [August 11, 2021, 3:19pm UTC](https://forum.wixstudio.com/t/i-creatd-a-dynamic-page-where-there-are-2-buttns-prev-next-i-connctd-the-next-button-to-the-data-set-its-working-fine-but-prev-buttn-no/34422/8 "2021-08-11T15:19:28Z")

</div>

Okay…let me see

---

<div class="post-metadata">

**Author:** ![mazumdarsourav108](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/mazumdarsourav108/32/24467_2.png) [@mazumdarsourav108](https://forum.wixstudio.com/u/mazumdarsourav108)\
**Post date:** [August 11, 2021, 3:26pm UTC](https://forum.wixstudio.com/t/i-creatd-a-dynamic-page-where-there-are-2-buttns-prev-next-i-connctd-the-next-button-to-the-data-set-its-working-fine-but-prev-buttn-no/34422/9 "2021-08-11T15:26:27Z")

</div>

It worked …I really appreciate your help. Thank you Kristof.

---

<div class="post-metadata">

**Author:** ![volkaertskristof](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/volkaertskristof/32/18158_2.png) [@volkaertskristof](https://forum.wixstudio.com/u/volkaertskristof)\
**Post date:** [August 11, 2021, 3:31pm UTC](https://forum.wixstudio.com/t/i-creatd-a-dynamic-page-where-there-are-2-buttns-prev-next-i-connctd-the-next-button-to-the-data-set-its-working-fine-but-prev-buttn-no/34422/10 "2021-08-11T15:31:17Z")

</div>

Happy i could help 🙂
