This page demonstrates xforms-submit-done and xforms-submit-error handlers updating visible instance state.
xforms-submit-done
xforms-submit-error