+ Start a Discussion

Trigger help urgent

Hi All,


I have one custom object Physician . My requirement is that when status is open i can insert new value, but when status is completed we can not insert new value just we can used old value.trigger is fire after update. can anybody help me to write this trigger.





Trigger with events (before insert, update , after insert , update )


-- insert records if/ when checkbox value to True .

using Trigger.new from documention 


-- Else insert record ; 




Thanks for the reply but this is not the exact solution which i want