Skip to content

Commit 00819e7

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

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ function onChange(control, oldValue, newValue, isLoading, isTemplate) {
1212
//Type appropriate comment here, and begin script below
1313

1414

15-
var ga = new GlideAjax('getSIRDetails');
15+
var ga = new GlideAjax('getSIRDetails'); // calling script include
1616
ga.addParam('sysparm_name', 'getDetails');
17-
ga.addParam('sysparm_sir', newValue);
17+
ga.addParam('sysparm_sir', newValue); //passing newValue to the script include
1818
ga.getXMLAnswer(callBackFunction);
1919

2020

2121

2222

2323
function callBackFunction(response) {
2424
var ans = JSON.parse(response);
25-
g_form.setValue('severity', ans.severity);
25+
g_form.setValue('severity', ans.severity); // setting values from the obj to appropriate fields
2626
g_form.setValue('soc_sir_state', ans.state);
2727
g_form.setValue('soc_sir_assigned_to', ans.assignedto);
2828

0 commit comments

Comments
 (0)