Next and Prev dynamic pages (filtered fields).

I solved it with this tutorials. Thank you so much Sam, great !

https://support.wix.com/en/article/velo-tutorial-creating-previous-and-next-buttons-for-a-dynamic-item-page-with-code

But … how to hide Prev Button on first item and Next Button on last item ? Code of tutorial disables buttons. I prefer to make them disappear.

So i add this to If:

else {
$w(“#previous”).hide();
}
and

else {
$w(“#next”).hide();
}

It seems to work