The xforms-focus event

Release 2.0 - ...

Dispatched in response to: set focus to a form control.

Event Properties

Event Properties Value / Description
Target Core Form Controls | group | switch | repeat
Bubbles No
Cancelable Yes
Context Info None

The default action for this event results in the following:

  • Focus is given to the target form control if the form control is able to accept focus. Any form control is able to accept the focus if it is relevant.

Example

XML CopyCode image Copy Code
<xforms:action ev:event="xforms-focus">
   <xforms:message level="modal">xforms-focus</xforms:message>
</xforms:action>

Specification

Link to the XForms specification: the xforms-focus event.