- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2026 06:56 PM
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.
Solved! Go to Solution.