Skip to content

Commit 77412fc

Browse files
authored
Create code.js
1 parent f47e24b commit 77412fc

File tree

1 file changed

+9
-0
lines changed
  • Client-Side Components/on change CS

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)