Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Though I was making a simple IF condition

erik_crl
Level 2
Level 2

Hello,

I've been trying to troubleshoot this for several days now and I seem to still be missing something.

I have a drop down menu with two options. In the properties for the drop down, I specified in the Binding tab to "Specify Item Values" (1 and 2).

Under the Change Event I place the below code.

if (this.rawValue="1"){

annOverview.necDate.presence="hidden";

}

else if

(this.rawValue="2"){

annOverview.necDate.presence="visible";

}

Though, no matter which selection I make, the necDate goes hidden. I've tried all other Events without success.

Should I be using something other than the IF statement?

Thank you,

Erik

1 Accepted Solution
erik_crl
Correct answer by
Level 2
Level 2

So I happen to come across the below posting and found that if I used the Case function instead of the IF statement the code works as expected under the Exit event.

Re: Display image based on drop down selection.

View solution in original post

1 Reply
erik_crl
Correct answer by
Level 2
Level 2

So I happen to come across the below posting and found that if I used the Case function instead of the IF statement the code works as expected under the Exit event.

Re: Display image based on drop down selection.

View solution in original post