Onclick Javascript Buttons with Lightning Experience - Ideas - Salesforce Trailblazer Community

All Ideas

Idea Details

Post an Idea
13,160  Points
Open - Not Planned
Open - Not Planned

Onclick Javascript Buttons with Lightning Experience

Lightning Experience

The Lightning Experience doesn't support onclick JavaScript buttons. These custom buttons are easy to spin up and extremely handy to conditionally redirect users to new pages. I've made use of them in Salesforce Classic for several years now and was dissapointed to hear that they are not supported with Lightning. Please add support in an upcoming release!

Merge Idea · Flag

Latest Comment from Salesforce

  • Vin Addala - 2 years ago

    Thank you all for your feedback on ways to improve our product — Salesforce is better because of input like this. While we would love to deliver every Idea, unfortunately there will always be ones that we won’t be able to pursue. In the spirit of transparency, allow me to give a little background on why we made this decision. As described in detail in the series of blog posts, https://developer.salesforce.com/blogs/developer-relations/2016/09/why-its-time-to-break-up-with-javascript-buttons-and-embrace-lightning.html , OnClick JavaScript buttons pose security and regulatory issues. Lightning was built from the ground up to deliver the most secure experience possible with technologies such as LockerService. We want to ensure the continued integrity of this security model and as a result will not be supporting OnClick JavaScript buttons in Lightning. However to ease the transition we are constantly looking for declarative and programmatic alternatives to help make this transition from OnClick JavaScript buttons to Lightning Alternatives easier and easier. On Trailblazer community we have a group called "Lightning Now!" where experts can assist in this process, in addition to a "Lightning Alternatives to JavaScript Buttons" trailhead, https://trailhead.salesforce.com/en/modules/lex_javascript_button_migration

    Thank you all for your input on this very important topic.
    Vin Addala
  • Upvotes
  • Downvotes

Ideas

Apps

from AppExchange

Questions

Help us to keep IdeaExchange clean by pointing out overlapping ideas. We'll investigate your suggestion and merge the ideas if it makes sense.



 

 

Thanks for your merge suggestion. We will review it shortly and merge the ideas if applicable.

Salesforce takes abuse situations very seriously. Examples of abuse include but are not limited to posting of offensive language or fraudulent statements. To help us process your request as quickly as possible, please fill out the form below describing the situation. For privacy and security reasons, the final outcome of an abuse case may not be revealed to the person who reported it.


 

Thank you for your feedback. We take abuse seriously and will investigate this issue and take appropriate action.