onReady code error

So I have a column in my database with addresses. I have these address connected to a button in a repeater on my dynamic page. I was given the below skeleton code to make the buttons link to google maps with each correlating address auto populated. I am having an error with Line 3 & 4 saying #dynamicDataset or in the below case #dataset is not a valid selector… Can someone please help me? What do I need to do to make it work? Thanks! New to code so I apologize in advance

Hi Michael,
First of all, if you want to use dataset in your code, you need to drap a dataset into your website editor.

If you are inside a dynamic page, you don’t need to add a new dataset.

Then, you can check the property of your dataset. An id will start with #

Finally, you need to replace the #dataset inside your page code to the id that you find in the property

Hope useful,
Heson

OMG!! You are a life saver Heson… I can’t believe how easy that was and I didn’t bother to hover over that dynamic square you can move around the page! The # was there when I hovered it! It works perfect now :)… So Happy

Your welcome.
Have a good day : )

question actually. It looks to only “map” only one address… How do I have it map what ever address I click?

Since the addresses populate based on the repeater I want this code to work with each repeated address… It is only mapping the first one.

Hi again,
You can have a look with this post. I have created a solution post step by step to do repeater navigation

Enjoy.

It was a question about repeater formatting

Thanks Heson. Where in there does it mention repeater navigation? (I am sort of lost )… Since I have a button in the repeater this will help have each google query populate based on each correlating address? (when repeated?)

would I/could I just copy the code in the first window and change #image2 to #button5 (since that is the #) and switch #dataset1 with my data set #… If yes do I keep #repeater1 the same since that is the # of my repeater?

Then in the wix location url put the google maps api url?..