How to validate custom fields in Quick edit/bulk edit?

How to validate custom fields in Quick edit/bulk edit?