I have a checkbox, and I want the default value to be *, that is All. e.g. device = (device="*")
But once an individual choice is selected I want All to be unselected. e.g. device = (device="Choice1")
How do I do this?
Default All is selected, and then I choose choice1, I get this:
device = (device="*" OR device="Choice1")
I do not want this, I want just device="Choice1", where device="*" would be unselected.
This is my code:
<panel>
<input type="checkbox" token="device" searchWhenChanged="true">
<!-- checkbox dropdown -->
<label>Select a device(for per device, need to unselect all):</label>
<default>*</default>
<!-- <choice value="*">All</choice> -->
<!-- The final value will be surrounded by prefix and suffix -->
<prefix>(</prefix>
<suffix>)</suffix>
<!-- Each value will be surrounded by the valuePrefix and valueSuffix -->
<valuePrefix>device="</valuePrefix>
<valueSuffix>"</valueSuffix>
<!-- All the values and their valuePrefix and valueSuffix will be concatenated together with the delimiter between them -->
<delimiter> OR </delimiter>
<choice value="*">All</choice>
<choice value="Choice1">Choice1</choice>
<choice value="Choice2">Choice2</choice>
<choice value="Choice3">Choice3</choice>
</input>
<html>
<h3> device = $device$</h3>
</html>
</panel>
... View more