1
Custom Calculation Script for Fillable Forms - PDFs
New Here
,
/t5/acrobat-discussions/custom-calculation-script-for-fillable-forms-pdfs/td-p/13188803
Sep 09, 2022
Sep 09, 2022
Copy link to clipboard
Copied
I am working on creating a form in which I need to calculate ship profit. My fields are as follows:
- Our Cost
- Customer Price
- Surcharge
- Subtotal (Customer Price + Surcharge)
- Ship Profit
Here is the formula in plain english. Can someone help me write the custom calculation please?
Subtotal - Our Cost/Subtotal
I need this to be a precentage, so I don't know if it then should be:
Subtotal minus Our Cost divided by Subtotal minus 1.
Thank you in advance for your help! Below is a screen shot of my form as is.
TOPICS
JavaScript
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
LATEST
/t5/acrobat-discussions/custom-calculation-script-for-fillable-forms-pdfs/m-p/13189110#M378063
Sep 09, 2022
Sep 09, 2022
Copy link to clipboard
Copied
1. Did you format "Ship Profit" field as percentage?
2. You want to show profit as percentage compared to "Our Cost"? Let's say "Our Cost" is 100 and "Subtotal" is 150 you want "Ship Profit" to show as 50%?
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

