5 Replies Latest reply on May 26, 2013 2:48 PM by try67

    javascript

    AffordableParalegal

      It has to be something simple . . . can someone tell me what is wrong?

       

      var x = this.getField("TM")                  //numeric field with one decimal

       

      if (x.value <=25.0)                             // if x is less than or equal to 25.0

      {

                     event.value = x.value        // then the value is equal to value of field "TM"

      };

      else if

            (x.value > 25.0)                          //otherwise, field is set to 25

                {

                          event.value = 25.0

                };