Dashboards & Visualizations

How to change xml dropdown to a checkbox?

benjiepr
New Member

I inherited a form and now the developers what it changed from a drop down menu to a check-box so that they can select multiple resources to search. How can i do this current xml is below:

A prototype of a simplified version of the search form with radio buttons.
dropdownchoice1 dropdownchoice2 dropdownchoice3 dropdownchoice4 dropdownchoice5 dropdownchoice6 dropdownchoice7 -24h@h now
index = idx_cat $host$ $Search$ Search results true 20
Tags (3)
0 Karma

ngatchasandra
Builder

If you want to select multiple resources, you need to create a checkbox input (not a radio input) and configure it if you are in splunk web (this configuration is developed in splunk-Viz manual), otherwise if you want to modify directly in your source code, write the scripted input like follow instead your input type radio :

<input type="checkbox" token="Sourcetype" searchWhenChanged="true">
      <choice value="*">All</choice>
      <populatingSearch fieldForLabel="Host" fieldForValue="Host">index=idx_cat |stats count by   Sourcetype</populatingSearch>
      <prefix>(</prefix>
      <suffix>)</suffix>
      <valuePrefix>Sourcetype="</valuePrefix>
      <valueSuffix>"</valueSuffix>
      <delimiter>OR</delimiter>
    </input> 

Thus, with this, you are going to select multiple resources.

0 Karma

benjiepr
New Member

Splunk 5.0.5

0 Karma

somesoni2
Revered Legend

What version of Splunk are you using?

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

.conf25 Global Broadcast: Don’t Miss a Moment

Hello Splunkers, .conf25 is only a click away.  Not able to make it to .conf25 in person? No worries, you can ...

Observe and Secure All Apps with Splunk

 Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What's New in Splunk Observability - August 2025

What's New We are excited to announce the latest enhancements to Splunk Observability Cloud as well as what is ...