Dropdown Box & URL Button Linked (Database)

Hey Thomas,

What you’re trying to do is indeed not too difficult, but you’ll need to write some code.

You need to create a onChange event handler for the dropdown that looks something like this:

import wixLocation from 'wix-location';
// the above line must be at the top of your code

// you need to connect this function to your dropdown using the properties panel
export function dropdown_change(event, $w) {
	$w("#dataset1").setCurrentItemIndex(event.target.selectedIndex)
		.then( () => {
			wixLocation.to($w("#dataset1").getCurrentItem().url);
		} );
}