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

    Script Syntax

    albertc52121104

      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++)
                total+=Number(this.getField("Text"+i).value);
            event.value = total;
         }