Dashboards & Visualizations

Multi select drop down is not working .

hrs2019
Path Finder

Hello every one,

Issue- Multiselect is not working if I remove all the fields from multi select box, it is not hiding it is showing waiting for data.
want to display- if i remove all the value from multi select it should hide the panel.
some token issue i believe.
can anyone help me?

alt text

<form hideEdit="false" theme="dark">
   <label>test</label>
   <search>
     <query>
           | makeresults | eval ID= len($test$) | fillnull value="ABC" | where testl!="ABC" | table testl
         </query>
     <done>
       <condition match="$job.resultCount$&gt;0">
         <set token="display_count">true</set>
       </condition>
       <condition>
         <unset token="display_count"></unset>
       </condition>
     </done>
   </search>
   <fieldset autoRun="true" submitButton="false"></fieldset>
   <row>
     <panel>
       <input type="dropdown" token="director" searchWhenChanged="true">
         <label>Managing Director</label>
         <choice value="*">All</choice>
         <fieldForLabel>Managing Director</fieldForLabel>
         <fieldForValue>Managing Director</fieldForValue>
         <search>
           <query>| loadjob savedsearch="test100" | search Service="$area$" CapabilityIN ($lead$) table "Director"</query>
           <done>
             <set token="enabledownload">none</set>
             <unset token="display_details"></unset>
           </done>
         </search>
         <default>*</default>
         <initialValue>*</initialValue>
       </input>
       <input type="dropdown" token="lead" searchWhenChanged="true">
         <label>Service Manager</label>
         <choice value="*">All</choice>
         <fieldForLabel>Service Manager</fieldForLabel>
         <fieldForValue>Service Manager</fieldForValue>
         <search>
           <query>| loadjob savedsearch="test100" | search Service="$area$" DirectorIN ($director$) | table "Service Manager"</query>
           <done>
             <set token="enabledownload">none</set>
             <unset token="display_details"></unset>
           </done>
         </search>
         <default>*</default>
         <initialValue>*</initialValue>
       </input>
       <input type="time" token="date_range" searchWhenChanged="true">
         <label>Date Range</label>
         <default>
           <earliest>-24h@h</earliest>
           <latest>now</latest>
         </default>
       </input>
       <input type="multiselect" token="test" searchWhenChanged="true">
         <label> (Select Maximum 5)</label>
         <search>
           <done>
             <set token="enabledownload">none</set>
             <set token="display_details"></set>
           </done>
           <query>| loadjob savedsearch="test100"| search Service="$area$" DirectorIN ($director$) | table "" </query>
         </search>
         <change>
           <eval token="form.test">if(mvcount('form.test')=6, mvindex('form.test',0,4),'form.test')</eval>
         </change>
         <fieldForLabel></fieldForLabel>
         <fieldForValue></fieldForValue>
         <delimiter>,</delimiter>
         <valuePrefix>"</valuePrefix>
         <valueSuffix>"</valueSuffix>
       </input>
     </panel>
   </row>
   <row>
     <panel id="panel1" depends="$display_count$">
       <title></title>
       <single>
         <search>
           <query></query>
           <earliest>$date_range.earliest$</earliest>
           <latest>$date_range.latest$</latest>
           <sampleRatio>1</sampleRatio>
         </search>
         <drilldown>
           <set token="display_details">true</set>
           <set token="level">404</set>
           <set token="enabledownload">none</set>
         </drilldown>
       </single>
     </panel>
   </row>
   <row>
     <panel depends="$display_details$">
       <html>
        <a role="button" href="/api/search/jobs/$export_sid$/results?isDownload=true&amp;timeFormat=%25FT%25T.%25Q%25%3Az&amp;maxLines=0&amp;count=0&amp;filename=test-Issues.csv&amp;outputMode=csv" class="btn btn-primary" style="display:$enabledownload$">Download Details (CSV)</a>
       </html>
       <table>
         <title>Details</title>
         <search>
           <done>
             <set token="export_sid">$job.sid$</set>
             <set token="enabledownload">inline</set>
           </done>
           <query>savesearch=test100</query>
           <earliest>$date_range.earliest$</earliest>
           <latest>$date_range.latest$</latest>
         </search>
         <option name="count">3</option>
         <option name="drilldown">none</option>
       </table>
     </panel>
   </row>
 </form>
Labels (3)
0 Karma

pavanml
Path Finder

You can use the same token $test$ of the (Select Maximum 5) of multi value panel for controlling the display of other panels. When nothing is selected the token $test$ will be unset so that can help control the display.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Data Outage Monitoring and Reporting

We’ve all been there, right? Living our best life, working on our Splunk environment, when out of nowhere a ...

Manage Datasets and Connections in Catalog on Splunk Cloud Platform

Set Up Data Where You Use It Catalog already helps teams find and understand data across Splunk indexes, ...

Persistent Queue at TcpOut — One of Splunk's Most Practical Features

Splunk introduced persistent queueing at the tcpout layer as one of the most practical resilience features in ...