Assigned To not auto-populating when Assignment Group is "Network" (Incident onChange Client Script)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Hi Everyone,
I am working on an Incident onChange Client Script where I need to automatically set the Assigned To field when the Assignment Group is set to "Network".
However, the script is not working as expected, and I am not sure what I am missing.
Below is the code I have written:
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
if (newValue === "Network") {
g_form.setValue("assigned_to", fred.luddy);
}
}
My requirement:
When Assignment Group = Network, Assigned To should automatically populate with a specific user.
Could anyone please help me understand what might be wrong here?
Thank you in advance for your support.
