JavaScripts Tab of the Form Property Editor

You use the JavaScripts tab of the form Property Editor to include your own JavaScripts in a custom form for a state or a transition. The SBM Server executes the scripts when users open a 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. jQuery provides enhanced functionality and can make JavaScript programming easier. 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, because the JavaScript file may be used by other forms).
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

Tool Bar Tab of the Form Property Editor

Behavior Tab of the Control Property Editor

Rows Tab of the Form and Control Property Editor

Columns Tab of the Form and Control Property Editor

Refresh Tab of the Control Property Editor

Appearance Tab of the Form and Control Property Editor

Actions Tab of the Form Property Editor

Using the Property Editors