response:field

Purpose

Indicates an error on an XForms control for a Multiple Validator widget by a reference to it.

Contained by

Contains

Attribute groups

Attribute

Attribute Description Type Default Options Use
ref Reference to the control that failed validation xs:string     required 

Example

<?xml version="1.0" encoding="UTF-8"?>
<response:response xmlns="http://www.w3.org/2002/06/xhtml2"
  xmlns:mcs="http://www.volantis.com/xmlns/2006/01/xdime/mcs"
  xmlns:response="http://www.volantis.com/xmlns/2006/05/widget/response">
  <response:head>
    <response:link rel="mcs:theme" href="/main.mthm"/>
  </response:head>
  <response:body>
    <response:validation result="failed">
      <response:message>Validation failed</response:message>
      <response:field ref="pin">
        <response:message>PIN must be exactly 6 digits long</response:message>
      </response:field>
      <response:field ref="name">
        <response:message>Name must be at least 4 characters long</response:message>
      </response:field>
    </response:validation>
  </response:body>
</response:response>

<?xml version="1.0" encoding="UTF-8"?>
<response:response xmlns="http://www.w3.org/2002/06/xhtml2"
  xmlns:mcs="http://www.volantis.com/xmlns/2006/01/xdime/mcs"
  xmlns:response="http://www.volantis.com/xmlns/2006/05/widget/response">
  <response:head>
    <response:link rel="mcs:theme" href="/main.mthm"/>
  </response:head>
  <response:body>
    <response:validation result="passed"/>
  </response:body>
</response:response>

Related topics