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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...