From 88ec79dc5236f4e0a9de61c9349e3cd4a27d24b2 Mon Sep 17 00:00:00 2001 From: Mohit Kaushik <33430400+kmohit2809@users.noreply.github.com> Date: Wed, 12 Oct 2022 13:34:59 +0530 Subject: [PATCH 1/8] Create style.css --- Styles/Add Background Color/style.css | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 Styles/Add Background Color/style.css diff --git a/Styles/Add Background Color/style.css b/Styles/Add Background Color/style.css new file mode 100644 index 0000000000..2b56faade7 --- /dev/null +++ b/Styles/Add Background Color/style.css @@ -0,0 +1,3 @@ +background-color:blue; +font-size:12px; +color:white; From 66353f0dc6eb2f231f76f483917404107f2b8874 Mon Sep 17 00:00:00 2001 From: Mohit Kaushik <33430400+kmohit2809@users.noreply.github.com> Date: Wed, 12 Oct 2022 13:35:27 +0530 Subject: [PATCH 2/8] Create readme.md --- Styles/Add Background Color/readme.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Styles/Add Background Color/readme.md diff --git a/Styles/Add Background Color/readme.md b/Styles/Add Background Color/readme.md new file mode 100644 index 0000000000..5cdc46dc56 --- /dev/null +++ b/Styles/Add Background Color/readme.md @@ -0,0 +1,5 @@ +Open a record. Right click on any field label and select configure style. +A list will open with all the styles applied on that field. +Click on New button to create your custom style. +Enter the code of style.css in Style field of style and done. +You can use this code on any field in any table. From 00c8e74e54777b6105639d92f48b4bbcf4c9642d Mon Sep 17 00:00:00 2001 From: Mohit Kaushik <33430400+kmohit2809@users.noreply.github.com> Date: Wed, 12 Oct 2022 13:44:23 +0530 Subject: [PATCH 3/8] Delete Styles/Add Background Color directory --- Styles/Add Background Color/readme.md | 5 ----- Styles/Add Background Color/style.css | 3 --- 2 files changed, 8 deletions(-) delete mode 100644 Styles/Add Background Color/readme.md delete mode 100644 Styles/Add Background Color/style.css diff --git a/Styles/Add Background Color/readme.md b/Styles/Add Background Color/readme.md deleted file mode 100644 index 5cdc46dc56..0000000000 --- a/Styles/Add Background Color/readme.md +++ /dev/null @@ -1,5 +0,0 @@ -Open a record. Right click on any field label and select configure style. -A list will open with all the styles applied on that field. -Click on New button to create your custom style. -Enter the code of style.css in Style field of style and done. -You can use this code on any field in any table. diff --git a/Styles/Add Background Color/style.css b/Styles/Add Background Color/style.css deleted file mode 100644 index 2b56faade7..0000000000 --- a/Styles/Add Background Color/style.css +++ /dev/null @@ -1,3 +0,0 @@ -background-color:blue; -font-size:12px; -color:white; From 2fa153e7fa3f2e18f4bf8cddbfdec7199b810a25 Mon Sep 17 00:00:00 2001 From: Mohit Kaushik <33430400+kmohit2809@users.noreply.github.com> Date: Tue, 17 Oct 2023 13:25:54 +0530 Subject: [PATCH 4/8] Create glide_info.js A simple pop-up with an info icon and an "OK" button that stretches with width of the modal window. --- GlideModal/Information Message/glide_info.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 GlideModal/Information Message/glide_info.js 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(); From b665f32c1dd9a587c2bb5f4764294ec82ae8de18 Mon Sep 17 00:00:00 2001 From: Mohit Kaushik <33430400+kmohit2809@users.noreply.github.com> Date: Tue, 17 Oct 2023 13:28:33 +0530 Subject: [PATCH 5/8] Create readme.md --- GlideModal/Information Message/readme.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 GlideModal/Information Message/readme.md diff --git a/GlideModal/Information Message/readme.md b/GlideModal/Information Message/readme.md new file mode 100644 index 0000000000..df4dbf8ab4 --- /dev/null +++ b/GlideModal/Information Message/readme.md @@ -0,0 +1,4 @@ +This script will be helpful to get an Information message with the help of GlideModal, this can be leveraged in your clint side scripts or UI actions. +There are two types of info messages which we can be leveraged through GlideModal. +1. A simple pop-up with an info icon and an "OK" button that stretches with width of the modal window. +2. A simple pop-up without an icon. From f09662297770af7e26a876c33ca6f5a394ec71d9 Mon Sep 17 00:00:00 2001 From: Mohit Kaushik <33430400+kmohit2809@users.noreply.github.com> Date: Tue, 17 Oct 2023 13:31:03 +0530 Subject: [PATCH 6/8] Create glide_warn.js A simple pop-up without an icon. --- GlideModal/Information Message/glide_warn.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 GlideModal/Information Message/glide_warn.js 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(); From 86531ad0c8a9a139b16867640935b2c9973aa2fb Mon Sep 17 00:00:00 2001 From: Mohit Kaushik <33430400+kmohit2809@users.noreply.github.com> Date: Tue, 17 Oct 2023 13:34:47 +0530 Subject: [PATCH 7/8] Update readme.md --- GlideModal/Information Message/readme.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/GlideModal/Information Message/readme.md b/GlideModal/Information Message/readme.md index df4dbf8ab4..6b1f7f4d05 100644 --- a/GlideModal/Information Message/readme.md +++ b/GlideModal/Information Message/readme.md @@ -1,4 +1,4 @@ -This script will be helpful to get an Information message with the help of GlideModal, this can be leveraged in your clint side scripts or UI actions. +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. A simple pop-up with an info icon and an "OK" button that stretches with width of the modal window. -2. A simple pop-up without an icon. +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. From 993f4589ed39fc9a55c0fefd10aa7adac3c33c03 Mon Sep 17 00:00:00 2001 From: Mohit Kaushik <33430400+kmohit2809@users.noreply.github.com> Date: Tue, 17 Oct 2023 13:36:16 +0530 Subject: [PATCH 8/8] Update readme.md Fixed the spelling error of 'clint->client'. --- GlideModal/Confirm Message/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.