Use the JavaScript console

You can open the JavaScript Console and write a script that doesn’t belong to any field or element. Scripts written in the JavaScript Console can be used to test routines and debug code.

To use the JavaScript console:

  • On the Forms ribbon, in the Document Setup group, click the arrow besides the JavaScript button and then click Console