W3C home > Mailing lists > Public > public-xformsusers@w3.org > January 2021

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

From: Steven Pemberton <steven.pemberton@cwi.nl>
Date: Fri, 15 Jan 2021 13:44:47 +0000
Message-Id: <1610717858211.1117623818.3508411505@cwi.nl>
To: XForms <public-xformsusers@w3.org>
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">
  <send submission="s" ...>

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

This archive was generated by hypermail 2.4.0 : Friday, 15 January 2021 13:45:02 UTC