Dashboards & Visualizations

Change default "Select..." text in Drop Down.

jason_hotchkiss
Communicator

Hello - I would like to change the default value of "Select..." to "Filter..." how might I go about this?  

jason_hotchkiss_0-1606154925436.png

I do not want it to be an option as I am using:
<input type="dropdown" token="user" searchWhenChanged="false">
<change>
<condition match="len($value$) &gt; 0">
<set token="user">user="$value$"</set>
</condition>
<condition>
<set token="user"></set>
</condition>
</change>
<label>Identity</label>
<allowCustomValues>true</allowCustomValues>
<fieldForLabel>test</fieldForLabel>
<fieldForValue>test</fieldForValue>
<search>
<query>|makeresults
|eval test=""</query>
</search>
</input>

 

Thanks in advance.

Labels (2)
0 Karma

impurush
Contributor

Hi @jason_hotchkiss ,

As you are populating the drop-down using dynamic values via query, you cannot set the default value for the dropdown.
I tried to give the static value as Filter and set it as a default value in the dropdown. It works as you want but I am not sure how it reacts when it populates the value from the query and the token you use in the subsequent queries.

0 Karma
Get Updates on the Splunk Community!

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to Officially Supported Splunk ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI! Discover how Splunk’s agentic AI ...