# shortMessage Attribute

Identifies the short error message to return in case of invalid data.

## Type

    xsd:string

## Remarks

The shortMessage attribute is a required attribute of the errorMessage element.

This is displayed in a ScreenTip in the default error user interface. For modal errors, this attribute is ignored and the detailed message is used instead. Maximum length of the error message is 127 characters.

## Example

The following is an example of the shortMessage attribute as it is used in the errorMessage 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>

©2003-2004 Microsoft Corporation. All rights reserved. Permission to copy, display and distribute this document is available at: http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp