Skip to content

Commit 299c4d2

Browse files
authored
detectOldValuenewValueOperation.js
This onChange Client script comes handy when dealing with Glide List type fields where we have to detect whether the value was added or removed and returns the display name of users who were added/removed along with name of operation performed.
1 parent 26cdcef commit 299c4d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Client-Side Components/Client Scripts/Detect oldValue newValue and Operation in Glide List Type Fields/detectOldValuenewValueOperation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function onChange(control, oldValue, newValue, isLoading, isTemplate) {
2525
operation = '';
2626
}
2727

28-
var ajaxGetNames = new GlideAjax('scriptUtil');
28+
var ajaxGetNames = new GlideAjax('watchListCandidatesUtil');
2929
ajaxGetNames.addParam('sysparm_name', 'getWatchListUsers');
3030
ajaxGetNames.addParam('sysparm_old_values', oldGlideValue);
3131
ajaxGetNames.addParam('sysparm_new_values', newGlideValue);

0 commit comments

Comments
 (0)