Skip to main content
Participant
September 6, 2016
Question

Calculation Help - Multiple Fields

  • September 6, 2016
  • 8 replies
  • 1301 views

Good Morning,

I appreciate everyone taking the time in looking at this post. I am trying to calculate multiple fields in a PDF Form based on the imput of a user. The fields that are basic addition are calculating fine. The issue I am running into is when I try to subtotal multiple fields and divide by .35 to create the margin on the numbers. This division by .35 is not calculating. Can someone please let me know what I am doing wrong? I am using the "Simple Field Notation" to try and do this. I have tried adding a new field (didn't work) and just dividing the number by .35.  Please see screen shots.

This topic is closed to new replies. Start a new post to keep the conversation going.

8 replies

try67
Community Expert
Community Expert
September 6, 2016

Please post the full code you're using, as text, not as a screenshot.

Participant
September 6, 2016

Sorry about that, here is the different codes that I have tried.

When adding an additional field (margin) to try and calculate this:

(ShingleWasteTotal15 * 147.68) + (PitchAdderTotal + StarterStripTotal + RidgeCapTotal + RidgeVentTotal + FlashingTotal + DripEdgeTotal + LeakBarrierTotal) / (Margin)

When trying to calculate margin based on 35%:

(ShingleWasteTotal15 * 147.68) + (PitchAdderTotal + StarterStripTotal + RidgeCapTotal + RidgeVentTotal + FlashingTotal + DripEdgeTotal + LeakBarrierTotal) / .35

try67
Community Expert
Community Expert
September 6, 2016

That is not a valid script.

I recommend you read this tutorial: https://acrobatusers.com/tutorials/how-to-do-not-so-simple-form-calculations