Copy link to clipboard
Copied
Hello,
I am trying to get a few calculations for a Form PDF. I don't have any experience with JavaScript, so I am hoping someone can help me! I tried to go down the Google and Forum rabbit holes to find something similar that I could adjust, but I was unsuccessful. Thank you in advance!
1. I would like the # of paychecks to autofill depending on which option is chosen in "Role". [If "Crew Member" or "Other - Paid Weekly" then "Paychecks" = "Weeks to Repay"] or [If "Supervisor" or "Other - Paid Biweekly" then "Paychecks" = "Weeks to Repay" / 2]
2. Then I would like "Deduction/Paycheck" = "Amount Requested" / "Paychecks"
Copy link to clipboard
Copied
Read these articles:
https://www.pdfscripting.com/public/How-to-Write-a-Basic-PDF-Calculation-Script.cfm
https://www.pdfscripting.com/public/How-to-write-an-If-statement.cfm
Find more inspiration, events, and resources on the new Adobe Community
Explore Now