Copy link to clipboard
Copied
I'm trying to create a pdf form where one field value is calculated by the other but I can't seem to figure out how to make it work. Can you please assist?
For example:
A person enters a number in Field 1 that is between 0 and 10
Field 2 populates a number based off of that input.
A person enters a number in Field 1 that is between 11 and 20
Field 2 poputlates a different number based off of that input.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Read This:
https://www.pdfscripting.com/public/How-to-Write-a-Basic-PDF-Calculation-Script.cfm
and this:
https://acrobatusers.com/tutorials/conditional-execution/
Copy link to clipboard
Copied
Copy link to clipboard
Copied
In JS the comparison operator is "==" (or "===").
Copy link to clipboard
Copied
Yes, thank you!
Copy link to clipboard
Copied
Hi, i'm trying to do something similar in a timesheet, but what I want is if the total hours add up to more than 40, the excess hours move to the next field. Aka employee 1 worked 43 hours, field 1 (regular hours) totals 40 and field 2 (OT Hrs) totals 3, without the employee having to type it in. Any help would be great, i'm only just learning how to write calculation scripts, so variations are super new.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now