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
RitikRitik 

override standard 'New' button

Hi,
Can I add parameters in the URL when clicking standard 'New' button @ custom object's tab view.
Note:- For list view, I have created a new button, which redirects to the edit layout to create a new record, and there I pass some parameters in the URL as well due to which some of my fields gets pre populated.
And I need similar functionality for my New button as well.


Any help is appropriated
Thanks and regards,
Ritik
Carlos Campillo GallegoCarlos Campillo Gallego
Hi Ritik,

'New' Button can be modified just like the other buttons, just create a Visualforce page with the required logic inside and edit the button to point to this Visualforce page.
You can do this at the buttons section of the custom object management page.

Regards