+ Start a Discussion
Xeon ArianXeon Arian 

Onclick Javascript not working in lightning

Hi ,

I am trying to create a custom button that will use onclick javascript but the button is not available in lightning . I know that lightning does not support onclick javascript. Can anyone help me with this issue by providing a replacement for it in lightning? Below is the code I am using in onclick javascript.


Hi Xeon,

Unfortunately, Javascript buttons are not supported in Lightning Experience.

However, Salesforce has provided alternatives for these buttons based on the use cases for which we implement these buttons.

Please refer the following blog.


Hope this helps.