How to keep a button disabled forever after user action on user side?

I am trying to figure out whether I can make this button disabled forever(even after one reloads the page or switches to another page and then switches back) on the user’s side after they click it.
Here is what I currently have for the button as it individually adds to a number value.

import wixData from ‘wix-data’;

export function yesButton_click(event) {
$w(“#yesButton”).disable();
$w(“#yesButton”).label = “Thanks For Voting”;

wixData.query("answers").find().then((result)=>{ 

let answersitem = result.items[0];
let id = answersitem._id;

    answersitem.yesfield++;  


    wixData.update("answers", answersitem).then(()=>{ 

        $w("#dataset1").refresh();  
    }); 
}) ; 

}

Do you require users to be logged in? And how long is “forever”? Until the browser window is closed or literally forever?

The user will have to be logged on to view the page or press the button at the very least. Forever is just for the remainder of that voting poll. We want users to only press the button once and not be able to click on the button even after refreshing the page.

@mayanmobilemarketing Since they’re logged in, the best way would be to create a new field in either the poll or members database indicating whether they’ve already voted for that poll.

@skmedia How exactly would we do that?

@mayanmobilemarketing https://www.wix.com/corvid/reference/wix-data.html#insert
You could insert a new boolean field or:
https://www.wix.com/corvid/reference/wix-data.html#update
update a text field to include the poll ID/URL.

@skmedia Thank you so much brother

pls add the updated code