Does anybody know how to unhide an element using an if statemente?

Like if you choose option A in #dropdown1 you can see and answer #dropdown2, if you choose B than you have to answer #dropdown3
I’ve tried this :
$w(“#dropdown2”).hide();
$w(“#dropdown3”).hide();
let x = $w(“#dropdown1”).value;
let y = $w(“#dropdown2”).value;
let t = $w(“#dropdown3”).value;
if (x===A){
$w(“#dropdown2”).show()};
if (x===B){
$w(“#dropdown3”).show()};

Hello.
You can follow the cascading form and Hide & Show Elements examples.

Good luck!

Thanks man, I apreciate but it’s not the cascading form I’m looking for. Can you tell me why isn’t this working:

$w.onReady( function () {
$w(“#dropdown88”).hide();
});
export function dropdown87_click(event){
let aqs=$w(“#dropdown87”).value;
if (aqs===“E”){
$w(“#dropdown88”).show();}
}

it says that dropdown87 has already been declared…

Sorry man, my mistake, it’s now working fine!
Thank you so much!!