7 Antworten
Hello,If you want this at organisation level that is for all users them it is better to have a validation rule rather than using apex controller.You can make it profile specific as well.Let me know if you need any assistance on that.Donot forget to select best answer to make our efforts visible in the developer forum.Please mark this as solution by selecting it as best answer if this solves your problem, So that if anyone has this issue this post can help