The required Property

Release 2.0 - ...

Describes whether a value is required before the instance data is submitted.

Computed Expression Yes
Legal Values Any expression that is convertible to XPath booelan with boolean().
Default Value false()
Inheritance Rules does not inherit.

A form may require certain values, and this requirement may be dynamic. When evaluating to true, this model item property indicates that a non-empty instance data node is required before a submission of instance data can occur.

Example

XML CopyCode image Copy Code
<xforms:bind nodeset="/person-name/first-name" required="true()"/>

Specification

Link to the XForms specification: the required Property.