Auto-Updating Text Field

Hi GOS,

I’ve seen that post before and tried an adaptation of it:

export function yesButton_click(event, $w) {
    $w("#dataset2").save()
        .then ( ( ) => {
        $w("#dataset2").refresh();
    })
    .catch((err) => {
        let errMsg = err;
    });
}

but it doesn’t work unfortunately. Is there a problem with the code, or is there something wrong elsewhere?

Thanks for the help!