Avatar

Level 2

A few things to check for :

make sure that the form is not set to target version : Acrobat 7.

some scripts fail on that version. try to keep it Acrobat 8 Above.

This setting can be found under File > Form properties - under Default and Preview sections

Secondly: make sure that the form preview type is indeed dynamic, and that the form has been saved as a dynamic PDF form.

Some times the preview doesn't work unless the form has been saved.

Thirdly:

check if the designer REPORT tool is showing any exceptions, when you validate your script.

Lastly:

try to run the form in Acrobat - open the debugger using Ctrl + J and see if there are any run time script failures.