Dashboards & Visualizations

Easy way to hide annotations based on token?


I had annotations I wanted to control with a Yes or No dropdown. It mostly works, unsetting the token doesn't seem to clear the token correctly as the annotations remain. 



<search depends=$showToken$ id="base">
<input type="dropdown" token="showToken" searchWhenChanged="true">
<choice value="yes">Yes</choice>
<choice value="no">No</choice>
<condition match="$value$ == &quot;yes&quot;">
<set token="showToken">true</set>
<condition match="$value$ == &quot;no&quot;">
<unset token="showToken"></unset>


is there a better way to accomplish this easily? I saw an older post that said using javascript could work but I need to do this through only XML at this time.

Labels (3)
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 ...