I'm working on a wizard with three sections; personal, other, confirm.
The button works fine going from "personal" to "other" but the form crashes when going from "other" to "confirm".
I'm a bit puzzled by the if then else statement in xml.
<fr:button xxforms:modal="true" ref=".[instance('fr-form-instance')/internal/part != 'confirm']">
<xforms:label>
<xhtml:img width="16" height="16" src="/apps/fr/style/images/pixelmixer/right_16.png" alt=""/>
<xhtml:span>Next</xhtml:span>
</xforms:label>
<xforms:setvalue ev:event="DOMActivate" ref="instance('fr-form-instance')/internal/part"
value="if (. = 'personal') then 'other' else if (. = 'other') then 'confirm' else ''"/>
</fr:button>