Target of submit-error and -done for <send/>

One of the issues we discussed was where to dispatch submit-error and 
submit-done to if <send/> doesn't specify a <submission/>
One possible solution is to say
* <send/> operates as normal, using a <submission/> element; attributes on 
<send/> add to or override the equivalent attributes on the <submission/>. 
submission errors are, as always, dispatched to the <submission/>
* if a <send/> doesn't reference a <submission/>, then its attributes are 
used, but submission errors are ignored.

In the latter case, if you still wish to catch submission errors, then use 
an empty <submission/>

  <submission id="s">
     <action ev:event="xforms-submit-error">
        ...
     </action>
  </submission>
  ...
  <send submission="s" ...>

Steven

Received on Friday, 15 January 2021 13:45:01 UTC