FormEngineUserControl CheckLength Method Kentico 8.1 API Reference
Checks if field value's length is not shorter or longer than specified borders.

Namespace: CMS.FormControls
Assembly: CMS.FormControls (in CMS.FormControls.dll) Version: 8.0.0.0 (8.1.5347.20411)

Parameters

minControlSize
Type: OnlineSystem Int32
Minimal size
maxControlSize
Type: OnlineSystem Int32
Maximal size
textLength
Type: OnlineSystem Int32
Text length
errorText
Type: OnlineSystem String 
Error text which will be returned in case of failure
errorMsg
Type: OnlineSystem String
Custom error message; it's used if it differs from 'Invalid input' message

Return Value

Type: OnlineBoolean
True if field value is not shorter or longer than specified min/max borders.
See Also