FEATURE: validate text field length based on record objects allowed length

Fixes #3681