Yeah, the toggles are a checkbox input (just styled a little differently). They should belong to a form and otherwise behave as you would expected. This is the case even when using
<xf:toggle>
within a data row.
You can attach the click-submit handler if you want toggling the input to automatically submit the form, which is the case for
<xf:toggle>
:
HTML:
<xf:checkboxrow>
<xf:option name="some_option"
label="Some label"
labelclass="iconic--toggle"
data-xf-click="submit" />
</xf:checkboxrow>