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

  • 1
  • Question
  • Updated 4 years ago
  • Answered

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);

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


  • 1,158 Points 1k badge 2x thumb

Posted 4 years ago

  • 1
Photo of Barry Schnell

Barry Schnell, Champion

  • 18,436 Points 10k badge 2x thumb
Hello KVin -

There are a couple of options I can think of

1) Display a skuid popup using the  skuid.utils.createPopupFromPopupXML (see for more info).

2) Create a jQuery UI Dialog within your snippet (see for more info).

Hope this helps!