Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onChange(control, oldValue, newValue, isLoading) {
- if (isLoading || newValue == '') {
- return;
- }
- var user = new GlideRecord("sys_user");
- user.addQuery("sys_id", newValue);
- user.setLimit(1);
- user.query(function(record) {
- if(record.next()) {
- var managerSysid = record.manager;
- g_form.setValue("u_manager", managerSysid);
- }
- });
- }
Add Comment
Please, Sign In to add comment