As our group starts planning the transition to lightning, I've taken it upon myself to look into our various JavaScript buttons that will need to be updated, and I've hit upon a snag.
One of the features of JavaScript buttons that our group was using quite extensively is the ability to return an alert back to the user without taking them away from the current record page. Data could be massaged, then checked first to see if an alert needed to be thrown or to continue on with the operation.
alert('this is a javascript button alert')
These alerts look like this to the user (In Chrome) With Visualforce pages, I can display alerts by adding them to the PageReference, or I can return Errors on records from a trigger, but that requires that an action has been performed on a record.
Is there any equally easy to setup way to display an Alert to the user without changing pages or or relying on a trigger firing? Something like Javascript buttons that allow us to massage the data and determine if an alert is needed?