Service Dialogs check length fields

How can I check the length of an value in a field