Share via


showErrorOn Attribute

Identifies XML Document Object Model (DOM) nodes (within the context of the expression context XML DOM node) on which the error should be displayed when the form is filled out.

Type

  xsd:string

Remarks

The showErrorOn attribute is an optional attribute of the errorCondition element.

Contains (relative to expression context XML DOM node) an XPath expression. Default is "." This is the same as the expression context.

Example

The following is an example of the showErrorOn attribute as it is used in the errorCondition element:

  <xsf:customValidation>
   <xsf:errorCondition
      match="/exp:expenseReport"
      expressionContext="exp:reportDate"
      expression="msxsl:string-compare(., ../exp:startDate) < 0 and ../exp:startDate != """
      showErrorOn=".">
      <xsf:errorMessage
         type="modeless"
         shortMessage="The report date occurs before the end of the expense period.">
         The report date occurs before the end of the expense period. Verify that this is correct.
      </xsf:errorMessage> 
   </xsf:errorCondition>
</xsf:customValidation>