xforms-readwriteAdded by IBM on August 8, 2013 | Version 1 (Original)
|Occurs when a data node that is readonly (readonly = true) becomes read-write, or when a node that is read-write changes value and remains read-write.
This event is triggered on the XForms control bound to that node.
Available In xforms:input, xforms:output, xforms:range, xforms:secret, xforms:select, xforms:select1, xforms:submit, xforms:textarea, xforms:trigger, xforms:upload
Example This example shows a field item that accepts the first name of the user's spouse. When the user selects the "married", the "single" radio button goes off and the field becomes readwrite, triggering an xforms-readwrite event. In this case, the event triggers the xforms:message action, which tells the user that the spousal information is required.
The following bind sets makes the spouse's first name readonly if the "single" radio button is selected:
The following code defines the label that displays the first name of the user's spouse:
<xforms:bind nodeset="personalInfo/spouseFirstName" readonly="../single = 'on'"/>
<xforms:label>Spouse's First Name:</xforms:label>
<xforms:message ev:event="xforms-readwrite" level="modal"
>You must provide all listed spousal information.</xforms:message>
- The order in which user interface events are processed is indeterminate. This means you cannot rely on them processing in a particular order.