I’m hoping this is a simple fix and someone can help me out…
I have a drop down element on my dynamic category page, Artists(ALL).
The list items link to their corresponding dynamic item page, Artists(Title).
So far so good.
Problem is when I try to add the drop down list to the dynamic item page, the dropdown lists the items but nothing happens when selected.
The code on the drop down on the Artists(ALL) category page is:
// API Reference: https://www.wix.com/corvid/reference
// “Hello, World!” Example: https://www.wix.com/corvid/hello-world
import wixLocation from ‘wix-location’ ;
import wixData from ‘wix-data’ ;
export function dropdown1_change(event) {
// This function was added from the Properties & Events panel. To learn more, visit Velo: Working with the Properties & Events Panel | Help Center | Wix.com
// Add your code for this event here:
// $w(“#input1”).value.replace(/\s+/g, ‘-’)
wixLocation.to(/artistsa-z/${$w("#dropdown1").value.replace(/\s+/g, '%20' )}
);
}
This works fine but doesnt work when in the individual dynamic pages.
I tried copying the dropdown and code onto the item page, linking it up with the dataset on that page but no joy.
I tried a new dataset linking to the artist collection and adding a new dropdown, linking them both up but still no joy.
I hope this makes some sense and someone can help