Import JavaScript screen

Uploads an exported JavaScript file from your local machine, and adds it to JavaScript library in Page Builder.

Figure: Import JavaScript screen

Import JavaScript screen

Prerequisites

How to Start

  1. Click Build Pages Build Pages icon.
  2. On the Page Builder Home screen, in the left pane, click Library Library icon.
  3. On the Library screen, do one of these:
    • In the left pane, click JavaScript > Ellipses (...) > Import JavaScript Import JavaScript icon.
    • In the left pane, click JavaScript.
      • In the right pane, click Import JavaScript Import JavaScript icon.

Fields

Field Name Definition

Import File

Function:
Specifies a file that contains the JavaScript snippet to use.
Accepted Values:
A JSON file that contains an exported JavaScript snippet.

Click the Select a file button to select a file from your local file system.

This file must be exported from Page Builder.

For more information, refer to Export a JavaScript file from Page Builder.

Default Value:
None

Select File Type

Function:
Shows the type of the file you selected to import.

When you select the file, this field shows the file type by default.

Accepted Values:
Read only.

Import

Function:
Uploads the file to the Page Builder library.