diff --git a/GlideModal/Confirm Message/readme.md b/GlideModal/Confirm Message/readme.md index 59955a5d58..869434fcb2 100644 --- a/GlideModal/Confirm Message/readme.md +++ b/GlideModal/Confirm Message/readme.md @@ -1,4 +1,4 @@ -This script will be helpful to get a confirm box with the help of GlideModal, this can be leveraged in your clint side scripts or UI actions. Confirm and alerts, which we get by +This script will be helpful to get a confirm box with the help of GlideModal, this can be leveraged in your client side scripts or UI actions. Confirm and alerts, which we get by using standard Javascript window methods can be easily blocked by user's browser, but GlideModal confirm will still display and this enhances the User experience. With the help of this script we can get a confirmation pop-up with "Don't save", "Cancel", and "Save" buttons. diff --git a/GlideModal/Information Message/glide_info.js b/GlideModal/Information Message/glide_info.js new file mode 100644 index 0000000000..f1a2eba2f5 --- /dev/null +++ b/GlideModal/Information Message/glide_info.js @@ -0,0 +1,5 @@ +var gm = new GlideModal("glide_info", true, 600); // glide_info is the OOB ui page. +gm.setTitle("Info box"); //title of your info box +gm.setPreference("title", "Welcome to ServicNow using GlideModal info box"); //Message shown in the info box +gm.setPreference("onPromptComplete", function() {alert("You clicked on 'Ok'")}); +gm.render(); diff --git a/GlideModal/Information Message/glide_warn.js b/GlideModal/Information Message/glide_warn.js new file mode 100644 index 0000000000..bead07ad55 --- /dev/null +++ b/GlideModal/Information Message/glide_warn.js @@ -0,0 +1,5 @@ +var gm = new GlideModal("glide_warn", true, 600); //glide_warn is the OOB UI Page +gm.setTitle("Info message without info icon"); //title of the box +gm.setPreference("title", "Info message text"); //message you want to display +gm.setPreference("onPromptComplete", function() {alert("You clicked on 'Ok'")}); +gm.render(); diff --git a/GlideModal/Information Message/readme.md b/GlideModal/Information Message/readme.md new file mode 100644 index 0000000000..6b1f7f4d05 --- /dev/null +++ b/GlideModal/Information Message/readme.md @@ -0,0 +1,4 @@ +These scripts will be helpful to get an Information message with the help of GlideModal, this can be leveraged in your client side scripts or UI actions. +There are two types of info messages which we can be leveraged through GlideModal. +1. It will display a simple pop-up with an info icon and an "OK" button that stretches with width of the modal window. +2. It will displat a simple pop-up without an icon.