For Developers

Lightning and JavaScript Buttons

2 min read
CloudAnswers photo
CloudAnswers
Share
TODO

Lightning is coming. You have played around with the new User interface, made some reports, and tested out your customizations. When Lightning was released a year ago, it was slow and it was missing things. A year later they have addressed a lot of the issues, sped things up, and now its looking pretty good!

Trailhead

Luckily for us, with all of the updates, we can stay current with Trailhead. Salesforce has been diligently crafting content that not only tells the User what is coming, it also walks you through use cases so you can really absorb it.

Today I was trying to find the best way to replace JavaScript Buttons. Salesforce has clearly signaled they are on their way out, which is rough for anyone who populated pages with data for their users. It won't work in Lightning, it won't work in Console. Now we have Quick Actions and Lightning Components. They work and they are easy.

Lightning Components

To get your bearings, you can go to Trailhead: JavaScript Button Migration to see how the migration works and an awesome example of the new functionality in Lightning.

Trailhead walks you through the example of using a modal to update a related record. This might not seem amazing, there are little edit modals for everything, but what this example shows you is that you can stay on the same page to update common fields on a related record. Time and again I talk to Users who want to update the Account from a Contact after a call. Now, with a Quick Action, you an edit the Account directly from the Contact avoiding the reload time and confusion of switching between records.


CloudAnswers photo
CloudAnswers
Share

About CloudAnswers

Salesforce apps, powerful components, custom development, and consulting. Our experienced team helps you to create and modify workflow processes in salesforce.

Related Articles

For Developers

Batch Apex Error Event - CloudAnswers Hackathon

A hackathon is an event usually put together by a tech organization. The event brings programmers together over a specific period to collaborate on a project.

June 28, 2021

5 Min Read

For Developers

Save DOM Element As Image Attachment In Salesforce

Use a dom-to-image Javascript library that can turn arbitrary DOM nodes into a vector (SVG) or raster (PNG or JPEG) image in Salesforce.

April 8, 2021

3 Min Read

For Developers

Embed Image In Conga Document Using Salesforce ID

Learn how you can embed an image uploaded as a Salesforce Attachment in a Conga Document. Use the Conga IMAGE tag you can embed images.

February 25, 2021

4 Min Read