The readonly Property

Release 2.0 - ...

Describes whether the node content is restricted from changing.

Computed Expression Yes
Legal Values Any expression that is convertible to XPath booelan with boolean().
Default Value false(), unless a calculate is specified for the value property, then true().
Inheritance Rules If any ancestor node evaluates to true, this value is treated as true. Otherwise, the local value is used.

When true, this model item property indicates that the XForms Processor must not allow any direct changes to the content of the bound instance data node from constructs other than the model item property system (i.e. other than a calculate).

Example

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

Specification

Link to the XForms specification: the readonly Property.