Skip to content

Commit eff16fc

Browse files
authored
readme.md
spModal alerts are modern sweet alert to show the choices to be selected in an interactive way. Here, we are providing HR's to select the type of rewards in the modal page and populate a field with the selected value and show a message of the selected reward.
1 parent e6f9694 commit eff16fc

File tree

1 file changed

+8
-8
lines changed
  • Client-Side Components/Catalog Client Script/spModal for Sweet Alerts

1 file changed

+8
-8
lines changed

Client-Side Components/Catalog Client Script/spModal for Sweet Alerts/readme.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
In ServiceNow, Open catalog client Scripts [catalog_script_client] and paste the code snipper of [spModalSweetAlerts.js]
1+
In ServiceNow, Open catalog client Scripts [catalog_script_client] and paste the code snippet of [spModalSweetAlerts.js] file.
22

33
Setup:
4-
1. A catalog item having variable name Rewards[rewards] of type 'Select Box' with include none as true and 2 choices(Yes and No)
5-
2. A Single line field named Reward Selected [reward_selected] which will hold the value which will be sleected from the spModal
6-
3. Now, the onLoad catalog client script:
7-
Type: onChange
8-
Variable: rewards (as per step 1)
9-
Script: [[spModalSweetAlerts.js]]
10-
4+
1. A catalog item having variable name Rewards[rewards] of type 'Select Box'(include none as true) and 2 choices(Yes and No)
5+
2. A Single line type field named 'Reward Selected' [reward_selected] which will hold the value selected by user from the spModal popup.
6+
3. The onLoad catalog client script setup as below:
7+
4. Type: onChange
8+
5. Variable: rewards (as per step 1)
9+
6. Script: [[spModalSweetAlerts.js]]
10+
1111

1212

1313
Screenshots:

0 commit comments

Comments
 (0)