4 Replies Latest reply on Aug 25, 2009 8:31 AM by pearldrummer222222

    Simple subtraction calculation

    pearldrummer222222

      Since Acrobat apparently does not have a simple way of subtracting one value from the another, does anyone have a quick, complete Java script for handling this?  I'm trying to take the value of a particular text field and subtract it from another text field and display the calcuation results in yet another third text field.  Is there an easy way to do this?

       

      Thanks for any assistance.

        • 1. Re: Simple subtraction calculation
          try67 MVP & Adobe Community Professional

          In the third field's custom calculation field, enter this:

           

          this.getField("field3").value = this.getField("field2").value - this.getField("field1").value;

          • 2. Re: Simple subtraction calculation
            Bernd Alheit Adobe Community Professional & MVP

            You can use a simplified field notation like:

            field1 - field2

            • 3. Re: Simple subtraction calculation
              pearldrummer222222 Level 1

              Thank you.  Worked perfectly!!!

               

               

              Bill Schmidt

              Sales Administrator

              EH Wolf & Sons/Tilot Oil LLC

              262.644.5030  FAX 262.644.5424

              www.ehwolf.com

               

              This e-mail and any attachments may contain privileged or confidential

              information. This e-mail is intended solely for the use of the individual or

              entity to which it is addressed. If you are not the intended recipient of

              this e-mail, you are hereby notified that any archiving, copying,

              distribution, dissemination or action taken in relation to the contents of

              this e-mail and any of its attachments is strictly prohibited and may be

              unlawful. If you have received this e-mail in error, please notify the

              sender immediately and permanently delete the original e-mail and destroy

              any copies or printouts of this e-mail as well as any attachments.

              • 4. Re: Simple subtraction calculation
                pearldrummer222222 Level 1

                Thanks!!

                 

                 

                Bill Schmidt

                Sales Administrator

                EH Wolf & Sons/Tilot Oil LLC

                262.644.5030  FAX 262.644.5424

                www.ehwolf.com

                 

                This e-mail and any attachments may contain privileged or confidential

                information. This e-mail is intended solely for the use of the individual or

                entity to which it is addressed. If you are not the intended recipient of

                this e-mail, you are hereby notified that any archiving, copying,

                distribution, dissemination or action taken in relation to the contents of

                this e-mail and any of its attachments is strictly prohibited and may be

                unlawful. If you have received this e-mail in error, please notify the

                sender immediately and permanently delete the original e-mail and destroy

                any copies or printouts of this e-mail as well as any attachments.