Assigned to field is empty!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2022 10:11 PM
Make the Assigned to field empty when the assignment group is not selected for incident problem change!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2022 10:20 PM
can you elaborate the question?
Raghav
MVP 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2022 10:43 PM
On the incident form, problem or change if assignment group is not selected make assigned to field as empty for any form...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2022 11:37 PM
Hi @Sushant20 ,
To achieve this write a client script on task (we will write this on task as it needs to execute on it's multiple child i.e. incident/problem/change) with inherited checkbox checked, on assigned_to field and write the below script:
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
var table = g_form.getTableName();
if (g_form.getValue("assignment_group") == "" && (table== "incident" || table == "problem" || table == "change_request")) {
g_form.clearValue("assigned_to");
}
}
I hope this helps.
Please mark my response Helpful if this helps and Accept the response if this solves your issue.
Regards,
Kamlesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2022 02:04 AM
@Sushant20 Tried and tested solution.
Create UI Policies to achieve this.
Create UI policies on incident, problem and change like below
Create a UI Policy Action under the above created UI Policy.
Check "Clear the field value" check box in Ui Policy Action
Please mark as correct answer if this solves your issue.
ServiceNow Community Rising Star, Class of 2023