Dashboards & Visualizations

Need to change dropdown values based on checkbox

architkhanna
Path Finder

I have a ticket category drop down (including assigned,in progress,closed reassigned etc)
I have a checkbox, on click of which I want the category drop down to run for all its value values EXCEPT "reassigned" value and once unchecked it should run with all the values present in category drop down
Any leads would be helpful.
Thanks

0 Karma

sbbadri
Motivator

<form>
<label>testDDCB</label>
<fieldset submitButton="true" autoRun="true">
<input type="time" token="time_tok">
<label>Time Range:</label>
<default>
<earliest>-24h@h</earliest>
<latest>now</latest>
</default>
</input>
<input type="radio" token="exclude" searchWhenChanged="true">
<label>Exclude/Include</label>
<choice value="1">With Reassigned</choice>
<choice value="2">without Reassigned</choice>
<change>
<eval token="fq">if($value$=="1","|search category=*","|search NOT catergory=reassigned")</eval>
</change>

</input>
<input type="dropdown" token="cat_tok" searchWhenChanged="true">
<label>Category</label>
<fieldForLabel>category</fieldForLabel>
<fieldForValue>category</fieldForValue>
<search>
<query>index=* sourcetype=xxx $fq$ | dedup category | table category</query>
<earliest>-4h@m</earliest>
<latest>now</latest>
</search>
</input>
</fieldset>

</form>

m7787579
New Member

Can you provide your query ? just hide you crucial details.

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

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