A new event, such as "xforms-submit-serialized" or "xforms-submit-ready", could be dispatched just before effectively performing the submission.

The context info for this event would be:

resource-uri (string)
request-headers (node-sequence)
request-body (object (string or node-sequence))

If an action had been defined to handle this event, the submission execution would then stop after serialization. This action could, by itself, explicitly dispatch "xforms-submit-done" or "xforms-submit-error".

This new event would allow any computation for debugging, echoing or response simulation.

--Alain
Le 25/03/2022 15:28, XForms Users Community Group Issue Tracker <sysbot+tracker@w3.org> a écrit :


ACTION-2320: Suggest a method of specifying a response for an echo

https://www.w3.org/2005/06/tracker/xforms/actions/2320

Assigned to: Alain Couthures