This might also be helpful to someone
export function image7_click(event) { // in case of image
$w(“#image7”).target = “_blank”;
const currentItem = $w(‘#dynamicDataset’).getCurrentItem();
const url1 = currentItem.urlField;
if (url1) {
$w(“#image7”).link = url1;
}
}