Thank you for that... I had a similar problem, a second dropdown that didn't unset its token when a change was done in the first dropdown. I adapted your solution for my ends. Say we got a secondary input that does not unset its token when a change was done in the primary input. There is token_1 and token_2. They are the token in the first (principal) input and the second (secondary) input, respectively. They are both populated by searches. And the values for token_2 depend on the values on token_1. Because the token_2 search is subsidiary to the results of token_1, it literally has $token_1$ as a parameter and cannot work without it. It should also be cleared and a new search launched as soon as token_1 is changed so as to NOT TO give "No Results Found" or worse yet (in the case of a coincidence of token_2 values) mislead the user. Create a token_1_B that is set to be equal to token_1. *After* you check if the new value of token_1 coincides with the former value, token_1_B. Unset token_2, the secondary if token_1 and token_1_B do not match, which means change. Summarizing: Add this as conditional change to the input on the token_1 <change>
<condition match="match($token_1$,$token_1_B$)">
<set token="token_1_B">$token_1$</set>
<!--to see if the token changed-->
</condition>
<condition match="!match($token_1$,$token_1_B$)">
<unset token="token_2"></unset>
<unset token="form.token_2"></unset>
<set token="token_1_B">$token_1$</set>
<!--to see if the token changed-->
</condition>
</change>
... View more