get clicked repeater item data

PHOTO EMBED

Mon Sep 05 2022 14:05:36 GMT+0000 (UTC)

Saved by @rumpski #undefined

function getGovernorId() {
    $w("#repeaterGov").onItemReady(($item, itemData, index) => {
        $item("#btnEditGov").onClick((event) => {
            let staffId = itemData._id;
            console.log('staffId is ',staffId,itemData.staffName)	
            $w('#datasetGovEdit').setFilter(wixData.filter().eq('_id', staffId));
            collapseAll();
            $w('#stripGovEdit').expand();
        })
    })
}
content_copyCOPY