In Lotus Notes, UIDOC (NotesUIDocument) provides the QuerySave event where you can validate field values before the document is saved. DOC is the backend document class without UI events, Values is a property, and Getvalue is not a standard validation method. UIDOC's QuerySave is the correct validation hook.