4 Replies Latest reply on Jul 12, 2016 8:39 AM by George_Johnson

    Script Syntax


      I have this code where I would like to change the criteria.  Right now it reads that if a particular field is filled in, then a range of fields will be added together
      (see below).  How do I change it so that it looks for a dropdown response before performing the calculation?



      if (this.getField("Date").valueAsString==""") event.value = "";
         else {
            var total = 0;
            for (var I=1; I<=17; i++)
            event.value = total;