Copy link to clipboard
Copied
I have an adobe variable data .pdf I want to be able to calculate the tax rate or tax percentage. How can I write a Javascript for this?
Copy link to clipboard
Copied
Is the rate fixed? If not, where is it coming from? What are the names of the fields involved?
Copy link to clipboard
Copied
The tax rate will be different from county to county. I have it called tax rate and and total with tax.
Copy link to clipboard
Copied
So do you have like a drop-down field with the county names?
Copy link to clipboard
Copied
Or do you want the users to enter it themselves?
Copy link to clipboard
Copied
I enter all the information on this form.
Copy link to clipboard
Copied
Then you don't need a script, simply multiply the total by the tax rate to get the total tax amount. You can add that value to the total to get the total (incl. tax).
Copy link to clipboard
Copied
that is what I did originally it did not calculate right. the dollar amount for 132.00 x 7.25% should be tax of 9.57=$141.57 but on form it calculate to $139.25. I tried it several different way and cant get it to calculate right.
Copy link to clipboard
Copied
The value of a percentage field needs to be between 0 and 1 to work correctly. If you're using a value between 0 and 100 you need to divide it by 100 first.
Copy link to clipboard
Copied
I manually enter the tax rate.