6 Replies Latest reply on May 19, 2008 10:52 AM by (Salv_C)

    Update problems when using scripting


      I have a form where I have several fields "Amounts", with different values. These values is then summarized in another field "NetValue". So far so good.

      Then I got another field "Total" that takes the summarized value and then adds and subtracts it with other values.

      This is the script that I'm using for the field "Total":

      event.value = this.getField("NetValue").value + this.getField("Freight").value + this.getField("Package").value - this.getField("Discount").value

      The field "Total" isn't updated when the value in field "NetValue" is changed. Field "NetValue" changes when I'm changing the values in the fields "Amounts".

      What should I do?