Add a script to a dashboard

You can add JavaScript to a dashboard to customize it for your agency or department. This script runs each time someone accesses the dashboard.

Note:

  • While the ESO Insights module supports adding a script to a dashboard, this is an advanced feature that requires experience using JavaScript. For best results, contact your ESO representative and ask for assistance.

  • You must have a designer role assigned to you in the ESO Insights module to add JavaScript to a dashboard.

    Information on role assignments is available in Assign user roles in the ESO Insights module.

  1. Click the name of the dashboard you want to work with.

    Tip: If the list of dashboards is long, you locate the dashboard you want more easily, as described in Find and open an existing dashboard or report.

    The dashboard opens and displays any widgets it contains, and the data those widgets link to.

    Click graphics
    to open them.
  2. Click the three-dot menu icon, then choose Edit Script from the menu that appears.

    A new browser window opens, displaying a script editor.

  3. In the script editor, add the JavaScript code you want to run every time the dashboard opens.

    Example:
    // Dashboard script that prints the dashboard title to the console
    console.log(dashboard.title);

  4. Click Save.

    A confirmation message appears, then closes automatically.