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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...