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

Description:
Specifies the name of the JavaScript file to create in Page Builder.
Allowed Values:
One line of text (a string).

Accepted:

  • Letters
  • Numbers
  • Spaces
Default Value:
None
Example:
Refer to:

Internal Name

Description:
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.

Allowed Values:
One line of text (a string).

Accepted:

  • Letters
  • Numbers
  • Hyphens (-)

Not Accepted:

  • Spaces
  • Other special characters
Default Value:
None
Example:
Refer to:

Description

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

Add

Description:
Adds the JavaScript snippet file to Page Builder.