cancel
Showing results for 
Search instead for 
Did you mean: 
intapiuser
Community Team Member
Community Team Member

Introduction

When using the Jump to Dashboard (JTD) feature, the modal window can only be closed by clicking outside of it. This guide explains how to use Blox to create a button inside the modal, allowing users to close it easily.

Step-by-Step Guide

Step 1: Create a BloX Widget

  • Add a BloX widget inside the JTD dashboard (the dashboard users jump to). Example code is below:
{
    "style": "",
    "script": "",
    "title": "",
    "titleStyle": [
        {
            "display": "none"
        }
    ],
    "showCarousel": false,
    "body": [],
    "actions": [
        {
            "type": "CloseIframe",
            "title": "Close",
            "style": {
                "background-color": "#115740"
            }
        }
    ]
}​

Step 2: Create a BloX Custom Action

  • Add a custom action "CloseIframe" in BloX and include the following script:

    $('.md-overlay', window.parent.document).click();
  • This script triggers the close action when the button is clicked.

Note: You can replace the button with an image (e.g., an "X" icon) and attach the close action to it.

blox.gif

Conclusion

By adding a BloX button or image with a custom action, users can close the JTD modal window without clicking outside. This enhances usability and improves navigation within the dashboard.

Disclaimer: This post outlines a potential custom workaround for a specific use case or provides instructions regarding a specific task. The solution may not work in all scenarios or Sisense versions, so we strongly recommend testing it in your environment before deployment. If you need further assistance with this please let us know.

Rate this article:
Version history
Last update:
‎03-17-2025 09:12 AM
Updated by: