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
Souvik Kundu 3Souvik Kundu 3 

I have used Onclick JavaScript list button to to open a modal dialog in salesforce classic. But Onclick JavaScript List button is not visible in Lightening mode. Can anyone help me on this. Or please let me know if there is any other way to achieve this.

Chris Gary CloudPerformerChris Gary CloudPerformer
If you are trying to open a modal dialog box within your Lightning component or App, The Salesforce Lighining Design system offers that.  See https://www.lightningdesignsystem.com/components/modals/ for more information on how to use it. In order to trigger the Modal, simply enable the component via Javascript like you would enable/disable any other element within your Component.