function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ivana MiserdaIvana Miserda 

Lightning enabled - avoid JS in button

Hi all, I wanted to get your suggestion on how to avoid JS in buttons. There are few scenarios where JS is used:
1) to invoke WebService
2) to update the current record 
3) to redirect to visualforce page

All this is done with some conditions prior to execution. For example 
if (account.status =='Ready')

Any suggestion/help much appreciated!