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!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...