11 Replies Latest reply on Jun 25, 2008 9:27 AM by (urszula_wyganowski)

    Trying to create a calculation but it won't work...


      I'm using Adobe Acrobat 8.1 for Mac.

      I've created a form and I need to enter what I assume to be a custom calculation script.

      The field named Text49 needs to be the result of the field named Text46 (manually entered value) multiplied by .062

      This is what I've entered in the custom calculation box in Text49:

      var v1 = 1 * this.getField("Text46").value;
      event.value = v1 * .062;

      But it's not working correctly. It'll work the first time when I manually enter a value in Text46 however when I change the manually entered value in Text46, the result in Text49 doesn't change.

      Also, Text49 doesn't show up in the box for setting calculation order.

      I'm sure it's something with my formula but I can't figure it out and don't know where to look.

      Can someone please help?

      Thank you so much!