Set up validation with yellow exclamation mark

Can you guide me how to set up this kind of validation / check?

validation_exlamation.jpg