Open filter expanded view with values

Hello Team,

I am using open source BI product Helical insight enterprise version 5.2.2. I have created some dashboards with filters. But now what I want is when I click on filters button and filter panel is opened I want all the filters to be expanded by default. Right now I need to click on it manually and then only it expands.

Could you please assist us in achieving this

Thank You,
Netta.

Hello ,
Yes , you can achieve this by following below mentioned steps.

  1. Open the dashboard in the edit mode and right click on empty space of the dashboard. Now select Advance Options and in that go to JS section.

  2. Paste the below code in the js section

setTimeout(() => {
    var filterBtnEl = document.querySelector('.hi-report-viewer-menu > li:nth-child(2)');
    
    if (filterBtnEl) {
        filterBtnEl.addEventListener('click', () => {
            console.log('Button is clicked');
            
            setTimeout(() => {
                var filterContainers = document.querySelectorAll('.ant-drawer-body .ant-table-tbody tr');
                
                filterContainers.forEach(item => {
                    var filterBodyEl = item.querySelector('.ant-card-body div');                    
                    if (filterBodyEl == null) {
                        var cursorPointerEl = item.querySelector('.cursor-pointer');
                        if (cursorPointerEl) {
                            cursorPointerEl.click();
                            console.log('Clicked the .cursor-pointer element');
                        }
                    }
});
}, 500);
});
} else {
console.log('Filter button not found!');
}
}, 1000);
  1. Click on apply button and save the dashboard.
  2. Now when ever you open the filter menu all the filters by default will be in expanded state.

Thank You.