1 Reply Latest reply on Apr 9, 2008 6:07 AM by Patrick Leckey

    math in ver 5

      I want to do the following math., can some one write the correct syntax to do it.I'm using Acrobat Ver 5. fielda = fieldb - (2 * fieldc) If you could please e-mail it to hitekrednk@comcast.net.

      Thank you

      Jeff
        • 1. Re: math in ver 5
          Patrick Leckey Level 3
          var FieldA = this.getField("fieldA");
          var FieldB = parseInt(this.getField("fieldB").value);
          var FieldC = parseInt(this.getField("fieldC").value);

          FieldA.value = FieldB - (2 * FieldC);

          Of course you will have to replace "fieldA", "fieldB" and "fieldC" with the actual field names.