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

Forms and scripting

hacki72
Registered: Aug 7 2007
Posts: 7

Scripting:
In Designer I use some scripts in my forms and they seem to make the pdf very slow.
EXAMPLE:
in the click event:
xfa.resolveNode("Formular1.Seite6.#area[0].erggrößer[0]").presence="visible"
xfa.resolveNode("Formular1.Seite6.#area[0].ergtext[0]").presence="invisible"
 
It's used with a button to control the field.
 
Sometimes I wait almost a minute until I can go on with my work.
 
How can I improve the perfomance?
 
thanks
hacki72

My Product Information:
Acrobat Pro 7.0.9, Windows
lsutton
Expert
Registered: Nov 15 2005
Posts: 51
If you are having performance issues, can I assume that this is a very large form and that the code you are implementing is causing a full refresh of the entire dynamic form?
hacki72
Registered: Aug 7 2007
Posts: 7
Yes that's true, in the form are about 60 fields with validation scripts.
How can I prevent Arcobat doing a refresh of the whole form?
Is it usefull to embed the fields in a subform ?

The strange thing is that the first 2-3 times I opened and used the form the "visible"/"invisible" script was performed faster.