E10 C# Form Customization - Validate a UD field text

This is where @Louis_Fequet suggestion of using the validate event to check the field value would come into play. Also, using a search instead of allowing freeform entry prevents errors in the first place. Just something to think about.