Copy link to clipboard
Copied
I've created a time sheet and it's in a PDF format. On the top of the form I have a From and To field. If someone enters 10/13/2018 in the from field, I need the To field to populate a date 14 days after (10/26/18). I also would like for the dates within the time sheet to populate. For example: Sat would populate as 10/13/2018, Sun would populate to 10/14/2018, Mon would populate to 10/15/2018 all the way to Fri. Below is an image of the time sheet. I've found JavaScripts online so I know it's possible. My issue is formatting the script based on where the names of my fields need to go. If someone could please provide the script and within the script show me where I enter the field names that would be greatly appreciated. I have never done this before so it's like learning another language.
1 Correct answer
If you post your script and the field names we might be able to help you adjust it.
If you want someone to do it for you, you'll probably need to pay them.
If you wish to learn how to do it yourself, these are very good tutorials about this subject:
https://acrobatusers.com/tutorials/working-with-date-and-time-in-acrobat-javascript
https://acrobatusers.com/tutorials/working-with-date-and-time-in-acrobat-javascript-part-2
https://acrobatusers.com/tutorials/working-with-date-and-time-in-acrobat-javascript-part-3
...Copy link to clipboard
Copied
It's exactly like learning another language - you will become a programmer (at least you will if you stick with it). Don't expect to be able to program with copy and paste, the examples you find on the web are just to aid understanding and help you write your own.
Copy link to clipboard
Copied
If you post your script and the field names we might be able to help you adjust it.
If you want someone to do it for you, you'll probably need to pay them.
If you wish to learn how to do it yourself, these are very good tutorials about this subject:
https://acrobatusers.com/tutorials/working-with-date-and-time-in-acrobat-javascript
https://acrobatusers.com/tutorials/working-with-date-and-time-in-acrobat-javascript-part-2
https://acrobatusers.com/tutorials/working-with-date-and-time-in-acrobat-javascript-part-3
If you're interested, by the way, I've developed a (paid-for) tool that allows you to set up such calculations quite easily and without having to write any code yourself. You can find it here: Custom-made Adobe Scripts: Acrobat -- Apply Automatic Date Calculation

