@miguel.buyme
The original code works fine with just the first “if” statement.
The provided if else-solution is not right and can’t work in your case, since the code will stop after entering the first → true-value.
→ get rid of → else if → use just → if + else
This way, every if-statement will be checked!
Edit: correction → it doesn’t matter which one is used, both should work.
@robmich
Another thing to check is that the values in dropdown4 are exactly the same as the values in the code without any capitalization.
This answer from Miguel should tell us that the used values are correct…
The original code works fine…
I guess the problem will be, that Miguel did not copy and paste the whole code including → onReady()-code-part.
Using the following kind of coding-style is not the best idea …
exportfunction dropdown4_change(event){ .........}
But anyway it would be surely helpful if you would show us your current running code (in a code-block) and perhaps even the console-logs (as screenshot).