Expand my Community achievements bar.

SOLVED

Drop Down Menu Selection -> Make Other Drop Down Menus Visible

Avatar

Level 2

I am having some trouble with a simple if-else statement. When a certain selection is made in a drop down box, I would like two other drop down menus to appear. (At runtime, they are hidden.) The current problem is that when I try and select anything in the drop down menu, it will only allow me to select this one option. (If I try to select anything else, it reverts back to the same thing every time.) If I set the "if" statement to trigger for something else, then that option is all it will display and so on. I have made plenty of these types of scripts in other areas of this PDF, but I can't figure out why it isn't doing what I want it to now.

The "change" event is what I currently have this set to. I have also set it for the "enter" event with no change.

If there's a better way to do this than the method  I am attempting to use, please don't hesitate to suggest it. I am definitely open to learning new methods.

1 Accepted Solution

Avatar

Correct answer by
Former Community Member

You need two equals signs in the if statement to do a comparison. A single equal sign will assign a value but two equals will be a comparison.

Paul

View solution in original post

2 Replies

Avatar

Correct answer by
Former Community Member

You need two equals signs in the if statement to do a comparison. A single equal sign will assign a value but two equals will be a comparison.

Paul

Avatar

Level 2

Thanks, man! I knew it was something simple I was missing. Those are my favorite kind of fixes.


The following has evaluated to null or missing: ==> liqladmin("SELECT id, value FROM metrics WHERE id = 'net_accepted_solutions' and user.id = '${acceptedAnswer.author.id}'").data.items [in template "analytics-container" at line 83, column 41] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign answerAuthorNetSolutions = li... [in template "analytics-container" at line 83, column 5] ----