Code Errors in Previous/Next Buttons for Dynamic Page

I tried to follow the instructions to code Previous/Next buttons for my website, but I keep getting a “No01-SENS is not a valid selector name” message. I’m positive it is the ID of my dataset, so I don’t understand what I’m doing wrong. I’ve spent the last twenty minutes looking for an anwser online, but so far, no luck.

Here’s my URL : https://www.revueperceptions.com/numero01

Thanks in advance!

Should you be using $w(‘#No01-SENS’)? Are you missing the #?

No, that’s not it. I already tried with the # and without it.

That can’t be the ID of the dataset because component names can only include alphanumeric characters.

Oh wow, how unfortunate! How come Wix let me put No01-SENS as my ID, then?

It seems like I can’t change it. What should I do?

A dataset and a collection are two related but different things. You were correct in thinking you should refer to the dataset, but your image is of the collection name/ID, not the dataset’s element ID.

Click on the little dataset icon on the page in question and it should tell you its name. It’s probably #dataset1.