Support Ukraine 🇺🇦 Help Provide Humanitarian Aid to Ukraine.
For Developers

Lightning and JavaScript Buttons

1 min read
Desk Recline

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.


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 Administrators

5 Hottest Updates in Salesforce Summer ’24 for Admins

Salesforce has 3 major releases every year: Spring, Summer, and Winter. The Summer 24 release is rolling out in 3 stages: May 17th, June 7th, and June 14th, respectively. Sandboxes will be updated on May 10, but if you want to get hands-on early, you can sign up for a preview org by following the link below. Getting to the good stuff, there are some major quality-of-life updates for Admins, features like the automation app, Einstein for Flow, Field tracking history, personal labels, and improved permission set interfaces, to highlight a few.

Ian Cosgrove

3 min read

Discover more from CloudAnswers

Subscribe now to keep reading and get access to the full archive.

Continue reading