The hint element
Release 2.0 - ...
The author-optional element hint provides a convenient way to attach hint 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.
A ephemeral message is the foundation for displaying a hint message. The hint message itself is usually rendered as tooltip on the containing control, but it also can be invoked by dispatching the xforms-hint event to the control.
Example
XML | Copy Code |
---|---|
<xf:input ref="a:Number" appearance="minimal" > <xf:label>Number:</xf:label> <xf:hint>Enter your street address number.</xf:hint> <xf:alert>Not a valid number.</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 hint element.