How to disable elements on refresh.

You have extra ``` at the beginning and the end of your code. Remove them (if they’re there. But anyway I don’t understand the logics, if the button is hidden or disabled it is not clickable.

If you wish to have many statuses, you can store them together like:

let states= {};
$w.onReady(() => {
const storedStates = local.getItem('pageStatus');
if(storedState){
states = JSON.parse(storedStates);
//now start populating for example:
$w('#dropdwon1').value = states.dropdwon1;
 //and for the buttons as well
}
$w('#button1, #button2').onClick(({target})=> {
 states[target.id] = 'clicked';
 storeData();
});
 $w('#dropdwon1').onChange(({target})=>{
  states[target.id] = target.value;
  storeData();
 });
})
function storeData(){
	 local.setItem('pageStatus', JSON.stringify(states));
})