Skip to main content
Participant
January 3, 2018
Answered

Using Javascript to Calculate Form Fields

  • January 3, 2018
  • 1 reply
  • 1878 views

Hi!

I need to calculate the sales tax of a field in my PDF form. We need to be able to enter the amount of sales tax in 87 (see below) and then have it automatically calculate in 88 (undefined_9) based off of the amount in 82 (undefined_4). Does anyone have a formula or script that I should use? Thanks!

This topic has been closed for replies.
Correct answer try67

Those numbers are not field names but the tab order.... You need to use the actual field names.

The calculation itself it very simple. Simply multiply the Sales Tax field by the Total to get the amount of tax that has to be paid for it.

You can use the built-in Product option under the Calculate tab to do it.

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
January 3, 2018

Those numbers are not field names but the tab order.... You need to use the actual field names.

The calculation itself it very simple. Simply multiply the Sales Tax field by the Total to get the amount of tax that has to be paid for it.

You can use the built-in Product option under the Calculate tab to do it.