In AX7 / D365 like tables, form controls and other element types, form data sources and form data source fields provide framework-level events. Validation events on data field and field controls support invalidating the user-specified values. The following example shows how you can cancel or override validating values on Validate events of form field control or of data fields.
Form data field validation:
From control field validation: