[MaxLen]

Accepts a numeric value as a parameter.

Description:

http://www.whatwg.org/specs/web-apps/current-work/multipage/common-input-element-attributes.html#attr-input-maxlength

This is valid for normal Fields, MText Fields, and Password Fields. This is not applicable to Checkboxes, Select lists, or MHtml Fields.

Note that the Web Browser will limit the number of displayable characters, which may or may not be the same number of bytes; due to encodings, the number of bytes may be larger than the number of displayable characters.

This Attribute only affects the user input on an HtmlForm, it does not enforce any maximums at the database level, thus allowing programically set values to exceed this limit.

Example:

[MaxLen] 120