function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
trigger OpportunityTrigger on Opportunity (before update) { if(Trigger.isBefore && Trigger.isUpdate){ for(Opportunity op:Trigger.new){ if((Trigger.oldMap.get(op.id).Amount!=Trigger.newMap.get(op.Id).Amount) && op.StageName=='Closed Won'){ op.addError('you cannot change Amount on Won stage'); } } } }
Please find the below trigger for your requirement. Thanks,
Nitish