Dashboards & Visualizations

When creating a dashboard, is there a way to disable the search box option that is amongst the list of dropdown menu possibilities?

DaClyde
Contributor

There seem to be two different types of dropdown menus possible when creating a dashboard. One just has the options you set as choices, the other has a little search box at the top of the list. How do I disable that search box? My dropdown only has 4 options, so there is no need for anyone to search and it is a waste of space in my menu. I could not find anything in the Simple XML Reference that addressed this, though I may have simply overlooked it.

----update to add code----

This is the code I'm using that results in a search box above the options:

      <input type="dropdown" searchWhenChanged="true" token="time_range1">
        <label>Select a time:</label>
        <choice value="-d@d">Today</choice>
        <choice value="-48h@h">Last 48 hours</choice>
        <choice value="-7d@d">Last 7 days</choice>
        <choice value="-30d@d">Last 30 days</choice>
        <default>-d@d</default>
        <showClearButton>false</showClearButton>
      </input>
0 Karma

somesoni2
SplunkTrust
SplunkTrust

Not sure If I get your problem correctly. (checked on Splunk 6.5 and 6.2) There is a regular dropdown where you can select single values and it doesn't have a search box, and there is multiselect dropdown where you can select multiple options and it does provide a search box to be able to type in the choices. If you want to fixed, non-searchable dropdown, use the regular dropdown only (not multiselect).

0 Karma

DaClyde
Contributor

I've updated my question to add the XML I'm using that gives me the search box in the dropdown. I'm stuck in Splunk 6.2.2 for the moment.

0 Karma

rjthibod
Champion

Try adding this option

<allowCustomValues>false</allowCustomValues>
0 Karma

DaClyde
Contributor

That only seems to determine whether or not the value put in the search is accepted or not, it doesn't actually get rid of the search box itself.

0 Karma

rjthibod
Champion

Ah, i see. There is probably not a way of hiding it. They likely show it in case you have many options and it does on-demand filtering.

The only way I can think of trying to hide it would be JS or CSS stuff, which would probably be overkill.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...