Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


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

33

Likes

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

Likes

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 Community Professional ,
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

 

Likes

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