Hi,
I’ve managed to build a string “businessCatsChosen” with the content I wish to insert in my dataset. The field name in the dataset is “vStoreBuisCat”
I’ve tried using the following to save the data:
$w(wixData).onBeforeSave( () => { $w(wixData).setFieldValue(‘vStoreBuisCat’, businessCatsChosen); $w(wixData).save();
} );
I’ve tried inserting the lines above within :
a)
export function SaveCategoriesButton_click(event) {
}
and b)
$w.onReady( function () { //TODO: write your page related code here…
});
Neither seem to work.
I’d really appreciate some hep here.
Thanks,
Riaz