4 Replies Latest reply on May 22, 2013 5:25 AM by SSsfs

    If else statement not calculating in pdf form. HELP!!

    SSsfs

      This formula (below) is not returning (calculating) a result.  What's wrong?

       

       

      var a=this.getField("Positions_Rates");

      var b=this.getField("Positions");

       

       

      if (a.value == "$0 - No position purchased") {

          (b.value = 0);

      } else if (a.value == "$40 - Top position purchased") {

          (b.value = 40);

      } else {

          (b.value = 1);

      }