maxLength Attribute

Microsoft Office InfoPath

maxLength Attribute

Defines the length of the field in number of bytes.

Type

      xsd:byte
    

Remarks

The maxLength attribute is an optional attribute of the field element.

Example

The following is an example of the maxLength attribute as it is used in the field element:

    <xsf:listProperties>
   <xsf:fields>
      <xsf:field
         type="xsd:date"
         maxLength="10"
         name="TravelDate"
         columnName="TravelDate" 
         required="yes"
         viewable="yes"
         node="TravelReport/Header/travelDate"
         aggregation="first"/>
   </xsf:fields>
</xsf:listProperties>