JavaScripts Tab of the Form Property Editor

Use this tab to include your own JavaScripts in a state or transition form. The SBM Server executes the scripts when users open the form.
Note:
  • By default, the scripts are not executed during form preview. For more information, see Form Preview Dialog Box.
  • The JavaScripts tab is not available for print forms.
Element Description
Include jQuery plugin Loads the jQuery library plugin. This check box must be selected if an SLA widget or Social widget is added to the form. (See Detail Controls for information about these widgets.) It must also be selected if an input mask is specified for a text field on a transition form. (See General Options for Field Controls for information about the input mask control.)
Add If you select New, opens the JavaScript editor, where you can create or import a JavaScript file. The JavaScript file is automatically included in the selected form.

If you select a JavaScript file from the drop-down list, that file is included in the selected form. This list includes files under the JavaScripts heading in App Explorer that are not already included in the form.

Import Imports a JavaScript file into the application and includes it in the selected form.
Remove Removes the selected JavaScript file from the form (but not from the application).
Move up/down Moves the selected JavaScript file higher or lower in the list. The order of the files in the list determines the order in which they are included by the SBM Server. This is important if you are reusing JavaScript files in several different forms. Files in the list may require variables to be defined or scripts to be executed in previous includes for them to function properly.

Related Topics

Using JavaScript

JavaScript Editor

General Tab of the Form and Control Property Editor

Appearance Tab of the Form and Control Property Editor

Tool Bar Tab of the Form Property Editor

Actions Tab of the Form Property Editor

Rows Tab of the Form and Control Property Editor

Columns Tab of the Form and Control Property Editor

Localization Tab of the Form Property Editor

Using the Property Editors