Validating User Input to a Field
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

Validating User Input to a Field

You can require any field, or any control that is bound to a field, to have a value. For example, you can set the exact text, range of numbers, or any other criteria for the field. You can also show a custom message (based on a validation formula) that tells users how to fill in the field if their entries do not match the value that you want. For example, you can limit the number of characters that can be entered in a TextBox.

For more information, see:

© 2015 Microsoft