shortMessage Attribute

Microsoft Office InfoPath

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>