click on slideshow to change slide

Hi, I’m totally new on coding. I’m trying to edit the homepage of my website ( https://www.fabulismoffice.com/ ).

I set up a slideshow in autoplay, but I would like to add the possibility to click on the image to move to the next one. The property _itemClicked is activated.

Here the code:

export function gallery1_itemClicked(event) {
event(“#gallery1”).changeSlide
}

Thanks!

Just another info: if I write

export function gallery1_itemClicked(event) {
$w(" #gallery1 ").changeSlide
}

there is another error that say: changeSlide doesn’t exists

The Gallery does not have Slides , the Slideshow component has Slides . You will need to determine which component best suits your needs.

Furthermore, if you are using a Slideshow, you need to call the changeSlide() which has parentheses.

Hi Yisrael,

first thanks for the comment! Yes, right. Precisely it is a Slide Deck Gallery.

i tried to change into this, but still doesn’t work

export function gallery1_itemClicked(event) {
$w(“#gallery1”).changeImage(1)

Hi, solved! Thanks!

export function gallery1_itemClicked(event) {
$w(“#gallery1”).next()
}