Skip to main content
Nintex Community Menu Bar
Question

Message on-click action

  • July 9, 2024
  • 4 replies
  • 14 views

Forum|alt.badge.img+9

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?

This topic has been closed for replies.

4 replies

Forum|alt.badge.img+11

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


Forum|alt.badge.img+9

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


Forum|alt.badge.img+11

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?


Forum|alt.badge.img+9

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