response:validation

Purpose

Returns the result of validation. It is used by Multiple Forms Validator widget.

Contained by

Contains

Attribute groups

Attribute

Attribute Description Type Default Options Use
result Returns the result of validation xs:string   failed, passed  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