Hi Yafim.
Just to clarify, you have put the log message as the following, right?
export function button6_click(event, $w) {
$w("#dataset1").onReady(() => {
console.log('inside onReady');
...
});
}
Regarding the checkboxes, pay attention, that your checkbox numbering is starting from number 1, but the selections which is an array in JS, first index is 0. So for selections, first item will always be undefined in the manner it is populated by indices starting from 1.
Regards,
Genry.