How do I set an error/success message in the ExpressionEngine admin panel from a bespoke add-on I’m developing?
I have a form, and wish to send back the result (i.e. “Form submission as successful”) in the area where messages usually appear in the admin panel. Example in screen-shot below:

JS method $.ee_notice
OR
If you’re doing a redirect after a form post, you can use set_flashdata prior to the redirect:
OR