Custom JavaScript

Business Background

Add meaning to your Web page and identify features easily with JavaScript.

Titan Solution

You can add multiple JavaScript manually or get a script from a source.

How to Video

  • 0:01 Introduction.
  • 0:18 Learn how to add custom JavaScript.

How to Guide

  1. Click the Gear icon to open the Project settings.
  2. Select the Tools option.
  3. Enable the Custom JavaScript toggle and click the Gear icon. The Custom JavaScript screen opens.
Custom JavaScript screen
Custom JavaScript screen
  1. Add the Type of the data script in the field.
  2. Type the Integrity to ensure that you have the correct script.
  3. Type the Cross Origin when you want to allow page sharing.
    • Select the Async checkbox to allow multiple tasks to run simultaneously during download.
    • Select the Defer checkbox to allow multiple tasks to run after download.
  4. Get your script from a source by selecting the SRC button.
  5. Alternatively, type your script in the content field by selecting the Write Content button.
    • You can use the Delete icon (top right of the screen) to remove the script.
  6. Click the Add a Script button to add multiple scripts.
  7. Click the Apply button.
Custom JavaScript screen
Note:

You can use ftGetEnvParamValue() for an environment variable when using custom JavaScript.

  1. Save and Publish the project.
  2. Click the Launch Site button.
Publish screen
Publish screen
  1. Right-click on the screen and select the Inspect option from the context menu to view the script.
  2. Alternatively, you can select the View page source option if you used a source.
Inspect option screen

The JavaScript screen will show under the Elements tab

JavaScript screen

Hidden Title

Need more help?