function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sindhu AmbarkarSindhu Ambarkar 

How to override standard button

Hi.
I need to override standard new buuton on account to display custom message to user.
Please help me.
Thanks & Regards,
Sindhu Ambarkar.
Dutta SouravDutta Sourav
Hi Sindhu,
Set Up> Customize> Account> Button, Links and Actions.
From the list find New & Click on Edit.
User-added image

Overwrite that button with your VF Page & Save.

Hope this helps!

Kind Regards,
Sourav.
Sindhu AmbarkarSindhu Ambarkar
Hi Sourav,
I wanted that how to implement visualforce page and controller.
Thanks & Regards,
Sindhu Ambarkar.
Dutta SouravDutta Sourav
Hi Sindhu,
You can use alert() method inside <script> to display an alert box with a specified message and an OK button.
Go to: Set Up> Develop> Visualforce Pages> New
<apex:page >
  <script>
      alert("Custom Message");
  </script>
</apex:page>

Override the new button with  this Page to display message.

Kind Regards,
Sourav