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

Acroforms and countdown timer

alkaest2002
Registered: Dec 16 2010
Posts: 8

I am trying to use the countdown timer by Thom Parker (Working with date and time in Acrobat JavaScript (part 3 of 3).
I pasted the code in a pdf with several calculated fields (based on simple methods implemented at document level), just changing the way in which the properties that govern the countdown behaviour are set.
Everything works, although I noticed that the mouse icon fickers in correspondence with the firing of the app.setInterval method. Such issue is not present in the original pdf from Thom Parker (very kind in sharing his knowledge).
Does that mean that my pdf isn't code-optimized (in some way) or the fickering is a normal phenomenon when the pdf document is "heavy" in terms of calculations?
Thank you for your suggestions and comments.
 
Pierpaolo

My Product Information:
Acrobat Pro 9.0, Macintosh
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
Are you familiar with how Acrobat performs calculations? I expect you have a number of calculated fields and as any one is updated, all the other calculated fields are being updated. You might want to review the section about "Form event processing" in the Acrobat JS API Reference.

George Kaiser

alkaest2002
Registered: Dec 16 2010
Posts: 8
Thank you very much, George.
I read that part, discovering interesting things I didn't know.
I think I found a possible solution by setting doc.calculate to false prior of the function called by the countdown timer and setting it back to true just afterwards. Now the mouse icon doesn't flicker anymore.
Again thanks for your suggestions and, naturally, Merry Christmas.

Pierpaolo
Michelle Graham
Registered: Nov 16 2010
Posts: 6
I have created a form in adobe livecycle and I would like to add a Countdown timer that clicks off when a user enter's a time. I need the countdown timer to be 2 hours from the entered time. The user will have 2 hours to complete the form. I need warning boxes that will pop up at 30 minutes and at 15 minutes. If not completed in the 2 hour time frame from when the time was entered then the form will prompt to close.
I have found where the timer starts from the start or stop button but I would like it to start from when the time field is excited.
I am new to form scripting and any help would be greatly appreciated.
Thank you

Michelle Graham