Dashboards & Visualizations

How do I pass token to a dashboard in a default inputc checkbox?

gcusello
SplunkTrust
SplunkTrust

Hi at all,
I have a main dashboard that calls a secondary dashboard where there is a checkbox input.
I'm trying to pass the default value to the checkbox. It correctly runs if I have only one default value, instead it doesn't run if I have more values, it seems like the problem is the coma.

This is my code:
main dashboard drilldown:

<drilldown>
          <link target="_blank">/app/my_app/home_page_overview_servers?TimeFrom=$Time.earliest$&amp;TimeTo=$Time.latest$&amp;Status=low,severe&amp;System_Type=Server Windows</link>
        </drilldown>

Secondary dashboard input checkbox:

<input type="checkbox" token="Status">
  <label>Status</label>
  <choice value="low">Present</choice>
  <choice value="severe">Missing</choice>
  <choice value="medium">Out of Perimeter</choice>
  <default>$Status$</default>
  <prefix>(</prefix>
  <suffix>)</suffix>
  <valuePrefix>Status=</valuePrefix>
  <delimiter> OR </delimiter>
</input>

Anyone encountered a similar problem?

Bye.
Giuseppe

0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

HI @cusello,

Have you tried to pass Status like below in drill-down URL?

form.Status=low&form.Status=severe


<drilldown>
           <link target="_blank">/app/my_app/home_page_overview_servers?TimeFrom=$Time.earliest$&amp;TimeTo=$Time.latest$&amp;form.Status=low&amp;form.Status=severe&amp;System_Type=Server Windows</link>
         </drilldown>
0 Karma
Get Updates on the Splunk Community!

Cultivate Your Career Growth with Fresh Splunk Training

Growth doesn’t just happen—it’s nurtured. Like tending a garden, developing your Splunk skills takes the right ...

Introducing a Smarter Way to Discover Apps on Splunkbase

We’re excited to announce the launch of a foundational enhancement to Splunkbase: App Tiering.  Because we’ve ...

How to Send Splunk Observability Alerts to Webex teams in Minutes

As a Developer Evangelist at Splunk, my team and I are constantly tinkering with technology to explore its ...