...
The primary action button will be enabled even when the dialog box contains empty mandatory fields. In this case, clicking the main action button will:
Show an error message at the bottom of the dialog.
Disable the button.
For detailed validations and errors, further information see Field Validation.
Best practices
...