Add New JavaScript File screen

Creates an empty JavaScript file in Page Builder where you can create a custom JavaScript snippet to use on your custom pages.

Figure: Add New JavaScript File screen

Add New JavaScript File screen

Prerequisites

Good to Know

  • When you complete this screen, a JavaScript file is added to the JavaScript library where you can create a custom JavaScript snippet to use on your custom pages.

How to Start

  1. Click Page Builder.

    Build Pages
  2. On the Home screen, in the left pane, click Library.

    Click Library
  3. In the left pane, click JavaScript.

    Click JavaScript
  4. On the JavaScript screen, click Add JavaScript.

    Add JavaScript

Fields

Field NameDefinition

Display Name

Function:
Specifies the name of the JavaScript file to create in Page Builder.
Accepted Values:
One line of text that can have spaces.
Default Value:
None
Example:
Refer to:

Internal Name

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

When you click on this field, the field shows the internal name by default. You can also specify a custom internal name. After the internal name is created, 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. Hyphens (-) are accepted.
Default Value:
None
Example:
Refer to:

Description

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

Add

Function:
Adds the JavaScript snippet file to Page Builder.