These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Need help with adding time fields

sarja
Registered: Mar 18 2010
Posts: 3

I'm trying to make a form for music tracks.

When I custom set the time field to MM:ss for minutes and seconds, it doesn't seem to recognize it and takes the second value and turns it into the minute.
(01:34 would be turned into 34:00)
how do i fix this?

second, i know i need javascript to add all the time fields together to make a total time box for all the tracks combined. can anyone help me out with a code to do this?

My Product Information:
Acrobat Pro 8.1.7, Macintosh
jimhealy
Team
Registered: Jan 2 2006
Posts: 146
Do you want them to be able to enter more than 60 minutes or seconds?

Jim Healy
FormRouter, Inc.
Check out our FREE Advanced Acroform Toolset:
http://www.formrouter.com/tools

Jim Healy, Founder & CEO FormRouter Inc.
Chapter Leader AUG RTP NC
http://www.formrouter.com

sarja
Registered: Mar 18 2010
Posts: 3
no, not necessarily.

for example i want something like this:


SIDE A
song 01 - 00:58
song 02 - 02:34
song 03 - 01:27
song 04 - 01:38
song 05 - 02: 12

SIDE A total time (to be added automatically as i enter each song time)

when i'm building the form and my text boxes are set to times, it's unable to add the times together. when i try to make a total box, and telling it to calculate the sums of all the previous boxes, it just messes up.
try67
Expert
Registered: Oct 30 2008
Posts: 2399
I think you'll need to do it manually.
- Split the strings by ":"
- Add the minutes.
- Add the seconds.
- Divide the seconds by 60 and add the result to the minutes. Keep the remainder as the seconds.
- If you want, do the same as above with the minutes to get the hours.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com