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">
<query>search.....</query>
</search>
...
<input type="dropdown" token="showToken" searchWhenChanged="true">
<label>...</label>
<choice value="yes">Yes</choice>
<choice value="no">No</choice>
<change>
<condition match="$value$ == "yes"">
<set token="showToken">true</set>
</condition>
<condition match="$value$ == "no"">
<unset token="showToken"></unset>
</condition>
</change>
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.