The alert element
Release 2.0 - ...
The author-optional element alert provides a convenient way to attach alert or error information to a form control.
The message specified can exist in instance data (using a Single Node Binding) or as inline text, where when both specified a Single Node Binding takes precedence over inline text.
This element is (usually) rendered in place next to the control which has invalid input.
Example
XML | Copy Code |
---|---|
<xf:input ref="a:Zip"> <xf:alert>The zip code must be in the format 1234 AB.</xf:alert> </xf:input> |
Which might render as:
Attributes
Name | Description |
---|---|
Common Attributes | Any attribute from the Common Attributes collection (e.g. id). |
Single Node Binding Attributes | One or more attributes from the Single Node Binding Attributes group (ref, model, bind). |
Linking Attributes | Any attribute from the Linking Attributes group (e.g. src). |
Specification
Link to the XForms specification: the alert element.