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 Build Pages Build Pages icon.

    Build Pages
  2. Click Library Library icon.

    Home Page Library
  3. On the Library screen, do one of these:
    • In the left pane, click JavaScript > Ellipses (...) > Add JavaScript Add JavaScript icon.
    • In the left pane, click JavaScript.
      • In the right pane, click Add JavaScript Add JavaScript icon.

Fields

Field Name Definition

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 in the Page Builder.

When you click on this field, the field shows the internal name by default. You can also specify your own internal name. After the internal name is created, you can not change it.

Accepted Values:
One line of text with no spaces.
Default Value:
None
Example:
Refer to:

Description

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

Add

Function:
Adds the JavaScript snippet file to Page Builder.