Trouble saving dataset in repeater

I thought that this code would work. I have a dataset that is feeding a repeater, and one of the items in the repeater is a text box. When the text box changes, it changes the dataset, and this event is called and the word “test” is written in the console. But the dataset is not saved! Not sure what I’m missing, but this is the only code on the page.

export function dataset6_itemValuesChanged() {
//Add your code for this event here:
console.log(“test”);
$w(“#dataset6”).save();
}

See the TodoList example to see how to save data from a Repeater.

Thanks so much Yisrael!!

This code did it, and I pulled it from the example you linked:

export async function textBox1_change(event) {
let $item = $w.at(event.context);
let newValue = $item(‘#textBox1’).value;
$item(‘#dataset6’).setFieldValue(‘fieldName’, newValue);
await $item(‘#dataset6’).save();
}