Anyone Successfully Using Sweetalert 2 with ServiceNow?

Paul Curwen
Giga Sage

Hi, I'm currently using SweetAlert which is available from Share as an Update Set from:

 

ServiceNow Share

 

SweetAlert 2 is now available from Share:

 

https://developer.servicenow.com/app.do#!/share/contents/1722265_sweetalert2_a_beautiful_responsive_...

 

it has a few extra features I'd like to use, just can't get it working in ServiceNow

 

Any advice appreciated,

 

Regards,

 

Paul.

***If Correct/Helpful please take time mark as Correct/Helpful. It is much appreciated.***

Regards

Paul
1 ACCEPTED SOLUTION

Hi jralph

 

I now have it all working in both London and Madrid.

 

The Update Set I've used is v2.3 which is available form Share here:

https://developer.servicenow.com/app.do#!/share/contents/1722265_sweetalert2_a_beautiful_responsive_...

 

No extra config was required just installed the Update Set and works a treat. Finally I can use Question marks 🙂 Some of the new features are great, a big improvement on Sweet 1

 

I've only used it in Chrome so if you are using it in IE11 you may have issues according to the comments from other on the Share page. 

You will also find the resources here useful: https://sweetalert2.github.io/

 

It comes with a great sample table as well:

 

find_real_file.png

***If Correct/Helpful please take time mark as Correct/Helpful. It is much appreciated.***

Regards

Paul

View solution in original post

19 REPLIES 19

After 2 years, this simple comment is still helpful. 

 

Many thanks.

sgmartin
Kilo Guru

Does anyone have this working in an onLoad Client Script.  Even the basic one doesn't do anything when I click the OK button.

Yes, working fine with no issues. Which browser are you using and which ServiceNow version?

***If Correct/Helpful please take time mark as Correct/Helpful. It is much appreciated.***

Regards

Paul

Chrome on both London and New York.

sgmartin
Kilo Guru

Works just fine in a UI Action script I have, but just on an onLoad, clicking the button does nothing.  We've upgraded our Dev instance to New York in preparation to upgrade Test & Prod, but it does the same thing in our Test instance that is still on London.