I try to do that enter the number in the box input and take me to link by click the button
and it did not work my web https://www.alansaritec.com/
my data base
my code
I try to do that enter the number in the box input and take me to link by click the button
and it did not work my web https://www.alansaritec.com/
my data base
my code
You want to use wix-location.to() for redirection. Also, you want the dataset’s current item, not the index. So your code should look something like this:
wixLocation.to($("#dataset1).getCurrentItem().links);
nothing happen
import wixData from 'wix-data';
import wixLocation from 'wix-location';
export function input1_change(event, $w) {
$w('#dataset1').setCurrentItem(event.target.number)
}
export function button1_click(event, $w) {
wixLocation.to($w('#dataset1').getCurrentItem().links);
}