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(); }) }) }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter