Hi Camille,
My suggestion is to place a box above the image, add a checkbox element add an onClick event to the box.
export function box1_click(event) {
if ($w('#box1').style.borderWidth === '1px') { // which means it's unselected
$w('#checkbox1').checked = true; // or $w('#dataset1').setFieldValue('youSelection', true);
$w('#box1').style.borderWidth = '10px';
}
else {
$w('#checkbox1').checked = false;
$w('#box1').style.borderWidth = '1px';
}
}
Do you understand the general idea?
Roi.