Skip to main content
Participant
May 31, 2020
Question

javascript to sum up time

  • May 31, 2020
  • 1 reply
  • 646 views

Hi there,

I have an pdf file and I would like to make it a form an sum up the field as minutes notification.

The column ETO should be not exceed 60 minutes. (See attached file) I'm a newbe to javascripting....can anyone help me out?

Best regards

Sylvia

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
May 31, 2020

You can do a simple Sum. It's available under the Calculate tab in the Properties dialog of a text field.

To limit the value to not exceed 60 is more complicated, though. What should happen if it does exceed it?

Do you want to force the user to enter something else into the input fields? Move the part of the value that's beyond 60 to another field? Something else? Either way, that will require using a script.