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
Nikitha Reddy 2Nikitha Reddy 2 

Hi All , Custom javascript buttons are not supported in lightning , do we have any fix for this in the coming releases and what is the best alternate solution for this

Nihar ANihar A
Hi Nikitha,

JS buttons in Classic are not supported in lightning. However there are alternatives for these buttons in Lightning with solution complexity ranging from easy to hard. And it looks like this is the way to go. There is a blog series and a trailhead on how to work on this transition:

Blog series:
https://developer.salesforce.com/blogs/developer-relations/2016/09/why-its-time-to-break-up-with-javascript-buttons-and-embrace-lightning.html

Trailhead: 

https://trailhead.salesforce.com/en/modules/lex_javascript_button_migration

Nihar.