Test case for toggle element events 9.2.3.a events dispatched by toggle element You should see 2 messages after you click the "show out case" button: "xforms-deselect (in)" followed by "xforms-select (out)". After clicking the "show in case" button you should see two messages: " xforms-deselect (out)" followed by "xforms-select (in)" You are now in the "in" case Show out case xforms-select (in) xforms-deselect (in) You are now in the "out" case Show in case xforms-select (out) xforms-deselect (out)