+ Start a Discussion
SandrineSandrine 

adding button to page layout

Hello,

I have a cutom button on click execute javascript.
How can i add this button to lightning pag layout

thanks for suggestion
Best Answer chosen by Sandrine
Krishna.AvvaKrishna.Avva
Hi Sandrine,

A detailed explanation on how to convert existing javascript functionalities to Lightning components is discussed here :https://trailhead.salesforce.com/en/content/learn/modules/lex_javascript_button_migration/javascript_button_alternatives

Majorly, you are looking at converting the current javascript buttons to either one of the three below:
  • Quick Action
  • Custom URL button
  • Visualforce Custom Button.
Regards,
Krishna Avva

All Answers

Krishna.AvvaKrishna.Avva
Hi Sandrine,

A detailed explanation on how to convert existing javascript functionalities to Lightning components is discussed here :https://trailhead.salesforce.com/en/content/learn/modules/lex_javascript_button_migration/javascript_button_alternatives

Majorly, you are looking at converting the current javascript buttons to either one of the three below:
  • Quick Action
  • Custom URL button
  • Visualforce Custom Button.
Regards,
Krishna Avva
This was selected as the best answer
Raj VakatiRaj Vakati


You cant able to use the javascript button on lightning experince so you need to convert it as quick action .. 

Use  Lightning Experience Configuration Converter tool to convert the code in the Lightning quick actions
https://lightning-configuration.salesforce.com/


https://developer.salesforce.com/blogs/2018/06/convert-javascript-buttons-to-lightning-friendly-alternatives-with-the-lightning-experience-configuration-converter.html..