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
Revered Legend

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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...