6 Replies Latest reply on Oct 16, 2015 10:06 AM by jasonz82977625

    Multiply 2 fields Question

    jasonz82977625 Level 1

      I have a Weight and Quantity field i would would like to auto update the weight based on the quantity.

      This is the scrip i used

      var a = this.getField("QT 1").value;
      var b = this.getField("Weight 1").value;
      event.value = a * b ;
      
      

       

      Works great  but if i go back and change the quantity it multiples the new quantity with the current weight

       

      so how do it get it to store a default weight that is entered .

       

      so if i enter quantity 2 and a weight of 4  equals 8 then change my mind to quantity 5 it does not do 5*8

       

      So how do i store the first entered value