• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Auto populate dates in a time sheet created in Adobe

New Here ,
Oct 23, 2018 Oct 23, 2018

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. Blank Timesheet.png

TOPICS
Acrobat SDK and JavaScript , Windows

Views

618

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Oct 23, 2018 Oct 23, 2018

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

...

Votes

Translate

Translate
LEGEND ,
Oct 23, 2018 Oct 23, 2018

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 23, 2018 Oct 23, 2018

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines