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

How do I get a form to calculate hours worked?

New Here ,
Aug 25, 2021 Aug 25, 2021

Copy link to clipboard

Copied

I have a pdf timecard that I needed to adapt to an hourly employee. 

I have read lots of things on here and alot of them say to use JavaScript...I have no clue how or what that is. 

I am attaching the for I have, and am hoping someone can wlak me thru step by step in how to get the IN and OUT boxes to TOTAL the hours worked.  Then to get the TOTAL at the bottom to show the total hours. 

ex. IN: 8:00 am  OUT 2:00 pm  TOTAL: 6 hours

 

Any help is appreciated!

TOPICS
How to , JavaScript , PDF forms

Views

543

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
Adobe Employee ,
Aug 25, 2021 Aug 25, 2021

Copy link to clipboard

Copied

Hi there

 

Hope you are doing well and thank you  for reaching out.

 

The workflow you are trying to achieve is posible using the JavaScript. For more information about using the JavaScript please check the help page - https://acrobatusers.com/tutorials/javascript_console/

 

Regards

Amal

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 ,
Aug 25, 2021 Aug 25, 2021

Copy link to clipboard

Copied

LATEST

Working with date and time in Acrobat is not a simple task. You can start by reading these tutorials:

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-date-and-time-acrobat-javascript-part-3-3

 

If you're interested, I've developed a (paid-for) tool that will allow you to set up such calculations very easily, without having to write any code. You can find it here: https://www.try67.com/tool/acrobat-calculate-time-differences-in-a-worksheet

 

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