Is it possible to hide filters using a URL parameter.
Our use case is following:
We have embedded dashboard that is shown from two different pages. One page is a generic page and user selects the filter values using standard UI.
The second page passes in the context and want to hide the filter selection, but we don’t want to create the second identical page with show_filters_bar=true in Lookml.
Hide filters using URL parameter
Already have an account? Login
Login to the community
No account yet? Create an account
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Thanks for reaching out. There is not a dedicated URL parameter that will control the hiding of filters, however, there is a new Beta feature (starting in version 5.22) called Embed Themes that may allow us to accomplish the same thing. We can create a new theme that hides the filter bar, and add that to the URL of our dashboard with
url_pathin your embed script. If you are interested in enabling this feature, please visit us at help.looker.com!
Thanks, we will give it a try.
does this work with SSO embedding as well? we were just having to duplicate a dashboard to set the embed settings on one as we want sso embedding with filters and again without.
yes this also works for sso embedding. Once you created the themes you can reference them in the URL part of the script. I created two themes, one without filter (‘jonathannofilterbar’) and one with filterbar(‘jonathanfilterbar’), please see the screenshots below:
When I use the theme with filterbar:
When I use the theme without filterbar: