Attachment and checkbox is true then show error message record already activated.
I tried this trigger
trigger con on contact (before insert) {
Boolean active= false;
if (Trigger.isBefore) {
email.Adderror('Record already activated');
else active= false;
}
}