This seems to work (but still feels like a work around): <form theme="dark" script="simple_xml_examples:showtokens.js">
<init>
<set token="field1">off</set>
</init>
<fieldset submitButton="false">
<input type="checkbox" token="field">
<label>field</label>
<choice value="option1">option1</choice>
<choice value="option2">option2</choice>
<change>
<eval token="field1">case(isnotnull(mvfind($form.field$,"option1")),"option1")</eval>
<eval token="field2">case(isnotnull(mvfind($form.field$,"option2")),"option2")</eval>
</change>
</input>
</fieldset>
<search>
<query>
| makeresults
| eval option1=$field1$
</query>
<done>
<condition match="isnull($field1$)">
<unset token="option1.txt"></unset>
</condition>
<condition>
<set token="option1.txt">$field1$</set>
</condition>
</done>
</search>
<search>
<query>
| makeresults
| eval option2=$field2$
</query>
<done>
<condition match="isnull($field2$)">
<unset token="option2.txt"></unset>
</condition>
<condition>
<set token="option2.txt">$field2$</set>
</condition>
</done>
</search>
<row>
<panel>
<html>
<p>$option1.txt$</p>
<p>$option2.txt$</p>
</html>
</panel>
</row>
</form> Does someone have a better solution?
... View more