You need to sign in to do that
Don't have an account?
Maxx
Can I get some help in my trigger??
Hello,
I need to write a trigger where if for a particular field the value isi.e. Stage__c = 'Changed'.. no new record should get created...
My Custom object name is Acc__c
Custom Field Name is Stage__c
You can prevent DML operation from happening using the Trigger.addError method
// check for the condition
if(condition){
Trigger.new[0].Field_Name.addError("Your Custom message");
}