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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...