Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
88ec79d
Create style.css
kmohit2809 Oct 12, 2022
66353f0
Create readme.md
kmohit2809 Oct 12, 2022
00c8e74
Delete Styles/Add Background Color directory
kmohit2809 Oct 12, 2022
fb052e2
Merge branch 'ServiceNowDevProgram:main' into main
kmohit2809 Oct 21, 2022
4067519
Merge branch 'ServiceNowDevProgram:main' into main
kmohit2809 Nov 29, 2022
24d4cec
Merge branch 'ServiceNowDevProgram:main' into main
kmohit2809 Sep 26, 2023
42eb3e4
Merge branch 'ServiceNowDevProgram:main' into main
kmohit2809 Sep 29, 2023
52b1a63
Merge branch 'ServiceNowDevProgram:main' into main
kmohit2809 Oct 3, 2023
0e8cf26
Merge branch 'ServiceNowDevProgram:main' into main
kmohit2809 Oct 6, 2023
869e1b0
Merge branch 'ServiceNowDevProgram:main' into main
kmohit2809 Oct 6, 2023
b2ba0b1
Merge branch 'ServiceNowDevProgram:main' into main
kmohit2809 Oct 9, 2023
ac02657
Merge branch 'ServiceNowDevProgram:main' into main
kmohit2809 Oct 9, 2023
ee43d18
Merge branch 'ServiceNowDevProgram:main' into main
kmohit2809 Oct 9, 2023
2c0365f
Merge branch 'ServiceNowDevProgram:main' into main
kmohit2809 Oct 11, 2023
ef42228
Merge branch 'ServiceNowDevProgram:main' into main
kmohit2809 Oct 16, 2023
737c90e
Merge branch 'ServiceNowDevProgram:main' into main
kmohit2809 Oct 17, 2023
2fa153e
Create glide_info.js
kmohit2809 Oct 17, 2023
b665f32
Create readme.md
kmohit2809 Oct 17, 2023
f096622
Create glide_warn.js
kmohit2809 Oct 17, 2023
86531ad
Update readme.md
kmohit2809 Oct 17, 2023
993f458
Update readme.md
kmohit2809 Oct 17, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion GlideModal/Confirm Message/readme.md
Original file line number Diff line number Diff line change
@@ -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.
5 changes: 5 additions & 0 deletions GlideModal/Information Message/glide_info.js
Original file line number Diff line number Diff line change
@@ -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();
5 changes: 5 additions & 0 deletions GlideModal/Information Message/glide_warn.js
Original file line number Diff line number Diff line change
@@ -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();
4 changes: 4 additions & 0 deletions GlideModal/Information Message/readme.md
Original file line number Diff line number Diff line change
@@ -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.