We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f47e24b commit 77412fcCopy full SHA for 77412fc
Client-Side Components/on change CS/code.js
@@ -0,0 +1,9 @@
1
+function onchange(control,old value, new value){
2
+if(new value){
3
+ var ga = new GlideAjax('userutils');
4
+ ga.addparam('sysparm_name', 'getuserdept');
5
+ ga.addparam('sysparm_user', 'newvalue);
6
+ ga.getxmlAnswer(function (answer){
7
+ g_form.setValue('department', answer);
8
+ });
9
+
0 commit comments