Commit 04c7e4c
authored
Improve Mandatory check script and Readme (#1984)
* Update script.js
- Adjusted the script to instead of not displaying the state field, flash the fields that are not filled in. This makes more sense and is using this existing function: https://www.servicenow.com/docs/bundle/zurich-api-reference/page/script/useful-scripts/reference/r_UsefulFieldScripts.html#d471717e187
- The getMissingFields() returns an array. Joining it with commas to improve readability of the info message.
- To prevent further execution added return statement.
* Update README.md
Updated the readme text.
- Highlighting what the code provides.
- Putting focus on the additional functionality of the error message that is provided by the function already, which was not mentioned in the original.
Updated with 2 new screenshots
* Update script.js1 parent ea59f67 commit 04c7e4c
2 files changed
+23
-19
lines changedLines changed: 12 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | | - | |
| 11 | + | |
10 | 12 | | |
11 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
Lines changed: 11 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
9 | 5 | | |
10 | | - | |
| 6 | + | |
11 | 7 | | |
12 | | - | |
13 | | - | |
| 8 | + | |
14 | 9 | | |
15 | | - | |
16 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
17 | 16 | | |
18 | | - | |
19 | 17 | | |
0 commit comments