Password Protected Collapsible Box

Password Protected Togglebox

----LOGIC-----
IF: input value = password AND submit button is clicked
THEN: show box container

So here is a test page link of what I am trying to achieve:
https://www.leveluptraining.tv/tesst

I would really appreciate it if you could give me the code on how to do this logic:

IF: input value = password AND submit button is clicked
THEN: show box container


Here is the current code on the above test page:
$w.onReady(function () {
$w.onReady(function () {

  $w('#buttonGO').onClick(() => { 
    		toggleBox($w('#boxDavidsProfile1'),); 
}); 

});

function toggleBox(boxElement) {
const isCollapsed = boxElement.collapsed;
if (isCollapsed) {

    	boxElement.expand(); 
} else { 
    	     	
    	boxElement.collapse(); 
} 

}
});


You guys rock :slight_smile: