0

After going through Trailhead and various other blogs I was under the impression that Javascript buttons are not supported in Lightning. But what I am not able to understand is that why/how I am able to map a Javascript button under Lightning Experience Actions in the page layout? What I am missing here?enter image description here

enter image description here

enter image description here

  • You'll want to double-check your button. Odds are, this is a Visualforce page instead. – sfdcfox Jul 19 '17 at 5:07
  • Sorry, I may not be clear in my post. Yes, this a detail page button which is redirecting to a VF page on the click. So you meant to say that will be supported under Lightning Action? – user28452 Jul 19 '17 at 5:11
  • I also found from the Salesforce that this is supported in Lightning. Thanks for your response. help.salesforce.com/… – user28452 Jul 19 '17 at 5:21
  • Not sure if you're looking for this. Javascript buttons are being phased out by SFDC. You might want to look at this – Pasan Eeriyagama Jul 19 '17 at 6:10
1

The Trailhead modules, Salesforce documentation, and countless resources online are all correct. The JavaScript buttons ("OnClick behavior") are not supported in Lightning Experience, and will not be available in the future. The Visualforce and URL buttons will continue to be supported for the foreseeable future.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.