You can add a JavaScript script to any form design object that allows calculations and scripts, including the script object.
1. Make sure that you have the multiline version of the Script Editor showing on the LiveCycle Designer ES workspace.
3.
5. Click Functions or F10 to display a list of JavaScript functions, select the desired function, and press Enter. Replace the default function syntax notation with your own set of values. Alternatively, you can create your own script manually in the Script Source field of the Script Editor. For example, in the new text field, add the following JavaScript to the Script Source field:
6. Click the Preview PDF tab to test the form. The text should appear red for the new button object when the form is displayed in the Preview PDF tab.