Click button, set switch to true and save value to database, after 10 seconds put it back to false and save value database, how can I do it?

Here’s my code:

export function button30_click(event) {
    $w('#dataset1').setFieldValue("newBoolean", true);
    $w('#dataset1').save();
    
    setTimeout(function () {
        $w('#dataset1').setFieldValue("newBoolean", false);
    }, 10000);
    $w('#dataset1').save();

}

Thank you, guys! I appreciate it.

It saves the first one to true and after 10 seconds it changes to false but is not saving the false value to the database, the value in the database stays true