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
Jayanth ThathapudiJayanth Thathapudi 

I have custom button on contact which on click re-directs to lead creation page with auto population of data

This functionality is working perfectly in classic(achieved by using custom button URL via URL hacking) but it is not working as expected in Lightning. 

Any help would be appreciated :)
Best Answer chosen by Jayanth Thathapudi
sfdcMonkey.comsfdcMonkey.com
HI jayanth,
 URL hacking or custom javaScript buttons are not supported in lightning experience. for achieving this functionality in lightning you have need to create lightning components and create quick actions/button in lightning record detail page.
For reference check below link : Lightning Alternatives to JavaScript Buttons
   https://trailhead.salesforce.com/en/modules/lex_javascript_button_migration

i hope it helps you.
Let me inform if it helps you and kindly mark it best answer if it helps you so it make proper solution for others
thanks 
sfdcmonkey.com