SweetAlert - a beautiful replacement for javascript's "alert"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2015 10:50 AM
SweetAlerts2 is out.
Hi Dev's,
Last night i was working on an application that needed some input. So i used SweetAlerts on the custom UI page and it turned out really nice looking, and i thought i could use globally!.
Once you install you can do any of the tests via the console
parent.swal({ title: "Are you sure?", text: "You will not be able to recover this imaginary file!", type: "warning", showCancelButton: true, confirmButtonColor: "#DD6B55", confirmButtonText: "Yes, delete it!", closeOnConfirm: false }, function(){ swal("Deleted!", "Your imaginary file has been deleted.", "success"); });
Make sure that you use "parent.swal()"
Here's more examples listed here SweetAlert
Screenshot's below.
- Labels:
-
User Interface (UI)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2017 03:11 PM
Nitin,
The HTML tag in sweetalert is a Boolean attribute (true/false) that allows you to have HTML in the title / text area of the alert. Try setting HTML to true, then move your link text to the title and see if that works.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2017 06:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2017 07:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2017 07:07 AM
Finally I figured this out by setting html as true and my link and information in Text.
I can now see the pop up with the URL/link as well. Unfortunately this feature is not working in Service portal. I have posted the same issue in other thread but did not receive any response yet. So just checking is there anything we have to do to make this working in SP?
Any thoughts are greatly appreciated.
REgards!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2017 04:14 PM
You can enable a UI script in Service Portal by adding it to the theme you are using, which is probably "Stock". Follow these steps:
- Go to Service Portal | Themes
- Click your theme being used for SP. Most likely Stock
- Click New in the JS Includes related list. If you don't see this related list, add it.
- Enter "globalsweetalerts" in the UI script and give it a name.
- Refresh and SweetAlerts should work in SP now