Add JavaScript File tab

Creates an empty JavaScript file where you can create a custom JavaScript snippet to use for a custom action.

Figure: Add JavaScript File tab

Add JavaScript File tab

Background and Setup

Examples

Prerequisites

Good to Know

  • When you complete this screen, a JavaScript file is added to the Shared Resources > JavaScript tab where you can create a custom JavaScript snippet to use on a custom action.
  • Documentation for this screen is provided for completeness. The fields are mostly self-explanatory.

How to Start

  1. Click Settings.

    Settings
  2. Click Work Center.

    Work Center Settings
  3. On the Modern Work Center Settings screen, click the Custom Actions Settings tab.

    Click Custom Actions Settings Tab
  4. On the Custom Actions screen, in the left pane, expand the Shared Resources tab.

    Expand Shared Resources
  5. On the Shared Resources tab, on the JavaScript tab, click the menu icon Menu Icon icon > Add.

    Click Add

Fields

Field NameDefinition

Display Name

Function:
Specifies the name of the JavaScript file to create for a custom action.
Accepted Values:
One line of text (a string) that can have letters, numbers, spaces, and special characters.
Default Value:
None

Internal Name

Function:
Specifies a unique, technical name for the JavaScript file.

When you click this field, the field shows the value you entered in Display Name field with no spaces. You can also specify a custom internal name. After you create the Internal Name, you can not change it.

Accepted Values:
One line of text (a string) that can have letters and numbers, and can not have spaces or special characters.
Default Value:
None

Description

Function:
Specifies an optional text description for the JavaScript file.
Accepted Values:
More than one line of text.
Default Value:
None

Save Save icon

Function:
Creates the JavaScript file.