SOLVED - setfield text as tag field

Hi

How to setfield text to database as tag? im using three checkboxgroups to lessen a long vertical list of options. So i want to combined all valued select from the checkboxgroups and save it to database as tag not text.

Any hands free to help?

DA

Just use concat()

import wixData from 'wix-data';

$w.onReady(function () {
});

export async function save_click(event) {
   let array1 = $w("#checkboxGroup1").value;
   let array2 = $w("#checkboxGroup2").value;
   let array3 = $w("#checkboxGroup3").value;
   let array4 = array1.concat(array2);
   let finalArray = array4.concat(array3);
   let toInsert = {
      tags: finalArray
   };
   await wixData.insert('tags', toInsert);
   console.log('Done! Whoop Whoop'); //mandatory celebration console log
}

OMG, it works! Big thanks concat man!