Forum Discussion

rholmesminton's avatar
rholmesminton
Cloud Apps
01-28-2026

Set a background dashboard filter using Javascript

I am trying to set a background dashboard filter using JavaScript. Any suggestions?

 

2 Replies

  • Thalita_Santos,

    Thank you for your offer to assist me. First, I set the dashboard filter as a background filter and then I was able to use JavaScript to update the custom script for the dashboard filter when the widget first loads. Now, I need to have the custom script change based on the tab that is selected in the tabber widget. Can you help me with that?

  • Thalita_Santos's avatar
    Thalita_Santos
    Sisense Employee

    Hi!
    Can I ask you to provide some further details on the use case so we can better assist you in achieving what you want through a script? I wrote a community article on How to apply widget filters through code with SisenseJS that could be useful as an example if you want to just manipulate filters through code. This article could also possibly help with your request.

    The logic would also work in widget/dashboard scripts (manipulate JAQL filter object and apply it in the widget/dashboard), and in this example, I develop an entire filter panel from scratch, including the UI and JAQL filter applying logic, to serve as an example for those looking for something with this level of customization. Let me know if this helps or if you're maybe looking for something different.