Skip to main content

I use “editor.handleMessages()” a lot to show messages to the users. If a user clicks on the message, it simply goes away. Some users think that this somehow fixes the error (yes I know it’s funny…). It would be great if clicking on the message could run a snippet or redirect them to a page to fix the problem. Is there a way to do this?

Interesting question 🙂 Can you set up a jquery onclick event handler?


Possibly, but I don’t know how to set a unique ID for the actual message that gets displayed.


Create an inline JS resource using this code: (function(skuid) { var $ = skuid.$; // Run the snippet initially on page load $(‘.nx-page’).one(‘pageload’, function() { $(‘.nx-messages’).on(‘click’, function(){ alert(‘Hello World!’); }); }); })(skuid); Does this get you closer?


That actually works! I inspected the element and I got “.nx-error” which I believe is even more specific than “.nx-messages”.