Button Linked to Dynamic Item Page Doesn't Work

Hello Wix Code,
I’m having a problem with a button on my site. I have a button on a dynamic item page (this dynamic item page acts as a user profile for users to input information) that is linked to a another dynamic item page. However, when clicked on, the button doesn’t do anything. It’s supposed to open up a new dynamic item page, but nothing happens. I have the button connected to the correct data set and the correct link. Thanks in advance to anyone who helps out.

-Pawtalog

1 Like

Hi, I have the same exact problem. To double check that it wasnt my error I deleted all pages and dataset connections just in case something was broken… still having the same problem and my code looks clean and dynamic button properties are correct. Ive spent HOURS trying to figure it out, but have reached a dead end. Thanks for helping if possible.

export: function button6_onclick() {
wixLocation.to(Members/Update/${wixUsers.currentUser.id});

Hi Pawtalog and Adam,

Please share with me the site URL or Editor, I’ll see what is wrong here.

Thanks.

Hi Alexander,
The page where the problem is occurring is called “Profile Update (ID)”. The button is called “pet of the week”. The dynamic page that I’m trying to connect is called “Profile/Pet of the Week Description/ID”

This is the link to my editor where the button is: (Removed this link since the problem has been solved)

This is a link to my website: https://www.pawtalog.com/

Thanks for helping out so far!

-Pawtalog

VERY QUIRKY. I tried adding a new button, while keeping the old, and renaming everything with the new button number sequence. Updated export button properties and viola! IT WORKED. To note, I tried the same exact thing a NUMBER of times with the original button, checking code, references and the button was still dead. I went through it with a fine tooth comb multiple times and the code and connections were clean.

NOW that I have a working button, it seems to sometimes load on the page and sometimes not. If I refresh the page a few times it will load but without rhyme or reason. No idea how to remedy that…

Hello, I made an INDEX on a member’s page, this index is linked to a database and a dynamic page, in my dynamic page I placed a button that is supposed to redirect you to another member’s page. (In each different dynamic page the button is linked to a different member’s page to see unique content).

My problem is, each time I link the button on the different dynamic pages to the corresponding member’s page, it sends me to the same page instead of the different pages I created for each lecture on the index.
(example:
----------------INDEX------------------
Trello lecture

Slack lecture

If i click on any of those im redirected to a dynamic page that shows the description and image of each lecture, in this dynamic page i placed a button under the Description part, this button its supposed to redirect me to a page (member’s only) with a video of the lecture. On each dynamic page I link the button to its corresponding page video BUT it just sends me to the same page!! (If i click linked the button to the trello lecture video, when i click the button on the Slack dynamic page it will send me again to the trello video lecture)

How can I fix this? It worked yesterday!!

Hi Alexander,

I’m having the a similar issue. I want to set up buttons so that when clicked they pull the relevant information from my dataset category. I haven’t found any good code examples for this. Do you know where I can start?