Skip to content

Commit e2748c5

Browse files
authored
Update script.js
1 parent 00819e7 commit e2748c5

File tree

1 file changed

+1
-7
lines changed
  • Client Scripts/Set Severity, state & assigned to

1 file changed

+1
-7
lines changed

Client Scripts/Set Severity, state & assigned to/script.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,19 @@
11
//onChange client script
22

3-
43
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
54
if (isLoading || newValue === '') {
6-
7-
5+
86
return;
97
}
108

119

1210
//Type appropriate comment here, and begin script below
13-
14-
1511
var ga = new GlideAjax('getSIRDetails'); // calling script include
1612
ga.addParam('sysparm_name', 'getDetails');
1713
ga.addParam('sysparm_sir', newValue); //passing newValue to the script include
1814
ga.getXMLAnswer(callBackFunction);
1915

2016

21-
22-
2317
function callBackFunction(response) {
2418
var ans = JSON.parse(response);
2519
g_form.setValue('severity', ans.severity); // setting values from the obj to appropriate fields

0 commit comments

Comments
 (0)