Skip to main content

Validate name entry

Overview

This article shows you how to prevent a user from entering a client's name with a special character.

Resolution

Are your users entering special characters in the Name field(s) for clients, causing Client cabinets to be created out of alpha sequence? We have a solution for that!

If you are programmatically creating cabinets and folders to store your subdocuments and you want these cabinets to always be alpha cabinets based on the client's last name, you need to make sure users cannot use a special character as the first character. For example, O'Hare is OK, but !Henry is not.

Adding a validation to a TierEdit control can help prevent incorrect characters from being saved. The following screenshot shows a sample validation on a control named NameL that will prevent having non-alpha characters at the beginning of the last name.

(:NameL >="a") and (:NameL <= "z") OR (:NameL >="A") and (:NameL <= "Z")

NameValidation.png

Because special characters are valued before 'A' or after 'Z', they aren’t accepted. For example: @ is 64 and A is 65.

If a user attempts to begin a name with a special character, they will receive the following message.

image003.png