Name

setfocus

Synopsis

This action redirects the focus to a different form control. An attribute named control holds an IDREF of the form control that will get focus.

In effect, this action does nothing more than dispatch an xforms-focus event to the form control indicated. It can be used like this:

<setfocus control="Address_1" ev:event="xforms-ready"/>

Get XForms Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.