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
boihueboihue 

Displaying the Success Message from Apex Trigger

Hi,
I knew that the Apex trigger can display the Error message to the salesforce users, but is it possible to also display the Success message to the user from Apex trigger? If not, is it possible to execute the JavaScript codes from the Apex trigger?
Thanks for your help!
Boi Hue
HarmpieHarmpie
I think both questions can be asnwered with No.
 
Maybe you could trick it, making a page layout with some inline javascript, the trigger setting a record type displaying this page layout. The inline javascript could then reset the record type to get back to a normal page layout, without the inline javascript..... all not very nice ofc :)