4 Replies Latest reply on Dec 5, 2014 2:06 AM by try67

    Hied field, if another field value = "" or 0

    bobwright007

      Hello I am trying to show and hide a field based upon another fields value.

       

      However I want this field to be hidden if the other field value is either blank " " or "22"

       

      Here is what I am working with,

       

      if (this.getField("Planting_Days").valueAsString=="") event.target.display = display.hidden;

      else event.target.display = display.visible;

       

      I want to do something like this.

       

      if (this.getField("Planting_Days").valueAsString=="" or "22") event.target.display = display.hidden;

      else event.target.display = display.visible;