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

Common javascript coding

rdickerson
Registered: Mar 22 2011
Posts: 1

I have a series of tests that I need to create. The format for the tests will all be the same. The questions will be different and the background artwork will be different.
 
I created my sample test in Acrobat and everything works fine. Now I want to be able to take the existing javascripts and transfer it from test to test, make the necessary adjustments, etc and publish the next test.
 
Is there a way to change the background artwork, or copy and paste all of the javascript coding from one document to the other? I tried copying the javascript in the Edit All Javascript area, and it will paste into the new document, but as soon as I hit OK, it all disappears. I tried using Live Document to be able to change the background artwork, but the javascripts don't transfer.
 
Any ideas?
 
Thanks,

R Dickerson

My Product Information:
Acrobat Pro 10.0.1, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
You might be able to use the "Document => Replace pages" to change the context layer and not modify the form fields layer or the document level JavaScripts.Do you use document level functions for common scripting tasks?

You might want to look at AcroTeX educ atonal System Tools by D.P. Story. Although he uses LaTex program for generating the content and scripts, but the concept of using document level scripts to perform functions or common scripting tasks with optional parameters to provide a processing result. There are a number of samples for quizzes, test, presentations, and games.D.P. Story, PhD, is a retired mathematics professor and has been an Acrobat Evangelist for a number of years.

George Kaiser