Splunk Search

How to display an input only for a specific tab in your dashboard ?

Ombessam
Path Finder

Screenshot 2025-03-21 at 11.27.22.png

Hello guys,

I have a dashboard  with two tabs. I've added a dropdown input and I'm going to add more inputs. But I want to display input only for a specific tab. In my case, I want for example the dropdown input to be displayed only when Inventory tab is active.  The dropdown input should disappear when I click Sales tab.

Can anyone help me how to achieve this ? Thanks a lot

 

Labels (1)
0 Karma
1 Solution

livehybrid
Super Champion

Hi @Ombessam 

If you click on your input, then in the panel on the right click the Display dropdown and select "In Canvas"

livehybrid_0-1742556533674.png

 

You can then move it around inside a single tab.

Please let me know how you get on and consider adding karma to this or any other answer if it has helped.
Regards

Will

View solution in original post

livehybrid
Super Champion

Hi @Ombessam 

If you click on your input, then in the panel on the right click the Display dropdown and select "In Canvas"

livehybrid_0-1742556533674.png

 

You can then move it around inside a single tab.

Please let me know how you get on and consider adding karma to this or any other answer if it has helped.
Regards

Will

ITWhisperer
SplunkTrust
SplunkTrust

Are you using Classic or Studio?

Please share your source code for your dashboard (in a codeblock </>)

0 Karma

Ombessam
Path Finder

Hi @ITWhisperer  I'm using dashboard studio. Here is my source code

{
    "title": "ButterCup Game",
    "description": "",
    "inputs": {
        "input_global_trp": {
            "options": {
                "defaultValue": "0,",
                "token": "global_time"
            },
            "title": "Global Time Range",
            "type": "input.timerange"
        },
        "input_wAcCA79n": {
            "options": {
                "defaultValue": "*",
                "items": [
                    {
                        "label": "All",
                        "value": "*"
                    },
                    {
                        "label": "ACCESSORIES",
                        "value": "ACCESSORIES"
                    },
                    {
                        "label": "ARCADE",
                        "value": "ARCADE"
                    },
                    {
                        "label": "SHOOTER",
                        "value": "SHOOTER"
                    },
                    {
                        "label": "SIMULATION",
                        "value": "SIMULATION"
                    },
                    {
                        "label": "SPORTS",
                        "value": "SPORTS"
                    },
                    {
                        "label": "STRATEGY",
                        "value": "STRATEGY"
                    },
                    {
                        "label": "TEE",
                        "value": "TEE"
                    }
                ],
                "token": "dd_token"
            },
            "title": "Game Categories",
            "type": "input.dropdown"
        }
    },
    "defaults": {
        "dataSources": {
            "ds.search": {
                "options": {
                    "queryParameters": {
                        "earliest": "$global_time.earliest$",
                        "latest": "$global_time.latest$"
                    }
                }
            }
        }
    },
    "visualizations": {
        "viz_t3jLGiwh": {
            "dataSources": {
                "primary": "ds_V5vxqc3K"
            },
            "title": "Sales count by product",
            "type": "splunk.pie"
        }
    },
    "dataSources": {
        "ds_V5vxqc3K": {
            "name": "CategorySales",
            "options": {
                "query": "index=web sourcetype=\"access_combined\" status=200 product_name=* categoryId=$dd_token$\n| stats count by product_name",
                "queryParameters": {
                    "earliest": "$global_time.earliest$",
                    "latest": "$global_time.latest$"
                }
            },
            "type": "ds.search"
        }
    },
    "layout": {
        "globalInputs": [
            "input_global_trp",
            "input_wAcCA79n"
        ],
        "layoutDefinitions": {
            "layout_1": {
                "options": {
                    "height": 960,
                    "width": 1440
                },
                "structure": [
                    {
                        "item": "viz_t3jLGiwh",
                        "position": {
                            "h": 400,
                            "w": 1440,
                            "x": 0,
                            "y": 0
                        },
                        "type": "block"
                    }
                ],
                "type": "grid"
            },
            "layout_AfZAhYi7": {
                "structure": [],
                "type": "grid"
            }
        },
        "options": {},
        "tabs": {
            "items": [
                {
                    "label": "Inventory",
                    "layoutId": "layout_1"
                },
                {
                    "label": "Sales",
                    "layoutId": "layout_AfZAhYi7"
                }
            ]
        }
    }
}
0 Karma
Get Updates on the Splunk Community!

Exciting News: The AppDynamics Community Joins Splunk!

Hello Splunkers,   I’d like to introduce myself—I’m Ryan, the former AppDynamics Community Manager, and I’m ...

The All New Performance Insights for Splunk

Splunk gives you amazing tools to analyze system data and make business-critical decisions, react to issues, ...

Good Sourcetype Naming

When it comes to getting data in, one of the earliest decisions made is what to use as a sourcetype. Often, ...