Can anyone PLEASE help me with the using repeater dynamic label from collection to pass results to another dynamic page with results from another collection (over a 100 tries) ? This is what I have from my amateur reading of the APIs and it is not working. It works but it is only sending (setItem) the Static Label of the repeater. I want the fetched Dynamic Label (getItem). Thanks.
import {local} from ‘wix-storage’;
import wixLocation from ‘wix-location’;
import wixData from ‘wix-data’;
$w.onReady( function () {
let itemObj = $w(“#dataset2”).getCurrentItem();
$w(“#button1”).onClick( (event) => {
$w(“#button1”).label = itemObj
let word = $w(“#button1”).label;
local.setItem(“searchWord”,word);
wixLocation.to(/page/resultpage
);
});
});