Adding support for maximum field length. This is configurable in FormField table.
A value of zero in this field means the limit of the database field is used.