Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will let this one go now, but next, please articulate better the context of your script, e.g. that this should be used on the incident table as an onChange script with the Caller field set. It may be trivial for most people, but not for everyone. Thanks.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This is a client script that change urgency to high automatically when changing caller field with the caller name whose vip is true
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}

var vipalert = g_form.getReference('caller_id',vipFunction);
function vipFunction(vipAlert){
if(vipAlert.vip == 'true'){
g_form.setValue('urgency','1');
}
}

}