I’m a newbie, my data has too many item, but i dont know how i can collect or combine them, and my data sometime has 8, 9 item , if i write a code for 10 item, textbox will show nothing. Please help me fix more correct and shorter than i do. Thank you!
export function button14_click(event) {
$w.onReady(function () {
wixData.query("checklist")
.hasAll("month", $w('#input1').value.toLocaleString())
.find()
.then( (results) => {
if (results.items.length > 0) {
let totalCount = results.totalCount;
let items = results.items;
let item0 = items[0];
let dd0 = item0.day;
let mm0 = item0.month;
let yy0 = item0.year;
...
let item10 = items[10];
let dd10 = item10.day;
...
$w('#textBox1').value =...