Skip to main content
Nintex Community Menu Bar
Question

How to display a nice UI dialog Error message instead of Alert in exception handling from a Snippet

  • July 10, 2024
  • 1 reply
  • 10 views

Forum|alt.badge.img+6


Hi,

I have a snippet where I will have to handle exceptions :

function(result, event){
                if (event.status) 
                {
                    //Do your operations
                } 
                else if (event.type === ‘exception’) 
                {
                    
                        alert(event.message + event.where);
                } 
                else 
                {
                    alert(event.message);
                }
}


instead of alert to User , how to display nice popup kind of error message in skuid (or jQuery) ?

This topic has been closed for replies.

1 reply

Forum|alt.badge.img+13

Hello KVin -

There are a couple of options I can think of

1) Display a skuid popup using the  skuid.utils.createPopupFromPopupXML (see https://community.skuid.com/t/trigger-popup-from-javascript?topic-reply-list%5Bsettings%5… for more info).

2) Create a jQuery UI Dialog within your snippet (see https://community.skuid.com/t/are-you-sure-action for more info).

Hope this helps!