I'm creating a self-tracking form in which employees have to mark the time of day they started and stopped working on a task multiple times throughout the form.
Is there a way to script fields to automatically fill in the current time several times in the same document?
I'm using Adobe Acrobat Pro DC (32-bit)
Yes, that's possible. What do you want to trigger this action, though? Do you have a separate button for it? Or should it happen when the user clicks on the field? Or when they open the file? etc.
Either buttons or triggered when the user clicks on a field. Since there will be multiple time logs, I won't be able to use the time they opened the file.
I've got nothing against using PDF forms when appropriate. But this sounds like you need a time tracking system, not a PDF.
Try this, it's free.
5 Best Time tracking Apps of 2021
This document will be utilized in the midst of a 2 company merger. Both companies have their own method of doing things (most of them outdated). I'm attempting to streamline the documentation both companies want recorded, without making any huge changes. Company A wants to keep track of how much time each person spends on a task (specifically start and stop times) and Company B wants record of the details of the task.
I'm exploring ways to accomplish this on an Excel sheet as well, but I'm not aware of a "timestamp" feature on that.
OK, and should it only be the time, or the full date and time?
Only the time, this one doc will be used throughout the day, and a new doc the following day.
Then let's say you have a button that you want to populate a field called Time1 with the current time (in 24-hour format). You can use the following code as that button's Mouse Up event to do it:
this.getField("Time1").value = util.printd("HH:MM", new Date());