1 Reply Latest reply on Nov 18, 2016 10:45 AM by erik_crl

    Though I was making a simple IF condition

    erik_crl Level 1

      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