Hello,
I have an issue with my slideshows.
I have two subpages — subpage A and B —, each having their own slideshow. As additional navigation I used a code to make it possible for the user to click on a button and get shown the respective slide (e.g. Button One for Slide One, Button Two for Slide Two and so on, that you could easily get from Slide Three to Slide One again).
This works perfectly for subpage A!
Now I wanted the same for subpage B. I copied the code and adjusted the IDs. But now, whenever I click a button to change the shown slide on page B, instead of the change happening, I get send to subpage A — as in, the code “thinking” when I click Button One of subpage B I want to go to Slide One of page A. Which is not the case.
This is an example of the code I have been using so far (the first button of each page):
For subpage A:
$w("#buttonTA1").onClick((event) => {
$w("#SlideShowTide").changeSlide(0);
})
For subpage B:
$w("#buttonCA1").onClick((event) => {
$w("#SlideShowCrown").changeSlide(0);
})
If it worked as intended, nothing should change. I should remain on the first slide of Slideshow Crown on subpage B – but when clicking the button, I end up on Slide One of page A.
Since I am even less than an amateur when it comes to programming, I wanted to ask for some advice. Is the “changeSlide” missing something? Or would I need a completely different kind of code?
Thanks in advance!