Like a lot of things with LiveCycle, Ive learned in the few days since I
have been using it that nothing is easy to find even if you are familiar
with Adobe products.But scripts are entered into Window/Scripts Editor.
It shows as a tool bar at the top of the page. Click on your text box
that you want the script to be used on, then select Initalize in the
editor, and enter the code in the window next to it