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
Sameer Rath 4Sameer Rath 4 

Code For Custom button

Friends I want to create a custom button  for an object and my requirment is to show the record ID of any record  in a new page when i click on that respective button . Please give the solution .
logontokartiklogontokartik
Hi Sameer,

You can write an OnClick Javascript and get the ID using the merge field. 

Something like

var recordId = "{!Account.Id}";
alert(recordId);