Dashboards & Visualizations

How to create dropdown list to remove * option?

erica
Explorer

I have a dropdown list with manually specified choices - A, C, D and All, but somehow splunk will auto populate another option * as default in my dropdown list after saving it.

The reason why I do not want * to be representing All in my dashboard is because Type might content B data that I want to exclude from being shown on my dashboard.

 

Anyone knows how to remove this * option?  Thank you

 

 

<input type="dropdown" token="contentType">
<label>Type</label>
<choice value="A">A</choice>
<choice value="C">C</choice>
<choice value="D">D</choice>
<choice value="ALL" OR content_type="C" OR content_type="D">All</choice>
<prefix>(</prefix>
<suffix>)</suffix>
<default>"A" OR content_type="C" OR content_type="D"</default>
<initialValue>""A" OR content_type="C" OR content_type="D"</initialValue>
</input>

 

 

 

erica_0-1654495529810.png

erica_1-1654495576249.png

 

Labels (1)
Tags (1)
0 Karma
1 Solution

kamlesh_vaghela
SplunkTrust
SplunkTrust

@erica 

Can you please try this?

<input type="dropdown" token="contentType">
      <label>Type</label>
      <choice value="A">A</choice>
      <choice value="C">C</choice>
      <choice value="D">D</choice>
      <choice value='"ALL" OR content_type="C" OR content_type="D"'>All</choice>
      <prefix>(</prefix>
      <suffix>)</suffix>
      <default>&quot;A&quot; OR content_type=&quot;C&quot; OR content_type=&quot;D&quot;</default>
      <initialValue>&quot;A&quot; OR content_type=&quot;C&quot; OR content_type=&quot;D&quot;</initialValue>
    </input>

 

I hope this will help you.

Thanks
KV
▄︻̷̿┻̿═━一   😉

If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated.

View solution in original post

0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@erica 

Can you please try this?

<input type="dropdown" token="contentType">
      <label>Type</label>
      <choice value="A">A</choice>
      <choice value="C">C</choice>
      <choice value="D">D</choice>
      <choice value='"ALL" OR content_type="C" OR content_type="D"'>All</choice>
      <prefix>(</prefix>
      <suffix>)</suffix>
      <default>&quot;A&quot; OR content_type=&quot;C&quot; OR content_type=&quot;D&quot;</default>
      <initialValue>&quot;A&quot; OR content_type=&quot;C&quot; OR content_type=&quot;D&quot;</initialValue>
    </input>

 

I hope this will help you.

Thanks
KV
▄︻̷̿┻̿═━一   😉

If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated.

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 ...