In Sitecore you can use validation rules. By default there are three validations rules on each template:
- Is Integer
- Max Length 40
- Requirer
You can modify or add new rules in the sitecoresystemsettingsvalidationfield section in the content editor
With the use of an multilist you can set the rules for your template.
