XForms event handler syntaxAdded by IBM on October 10, 2012 | Version 1 (Original)
XForms event handlers exist in the following namespace:
By convention, XFDL uses the ev prefix for this namespace, which is normally declared on the <XFDL> element of the form as shown:
Event handlers themselves are declared as an attribute on XForms actions, and are written as shown:
When creating an event handler, you can add the attribute to either the general <xforms:action> tag or, for a single action event handler, directly to any specific XForms action tag.
When using the <xforms:action> tag, the individual actions do not require event handlers, as shown:
In this case, the event triggers all of the actions contained in the <xforms:action> tag, which are then processed in the order listed.
When using a single action, the event is added to the action tag as shown:
In this case, the occurrence of the event triggers only the single action containing the ev:event.
<action ev:event="event" action_settings>