Assigned to should not be filled if Assignment Group Field is Empty on Incident Form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2019 04:32 AM
Hi All,
I have one requirement that user cannot able to fill the Assigned To cannot be filled without Filling the Assignment Group.
Can anyone suggest me how to impose the restriction in SNOW?
Regards,
SNOW@Das
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2019 04:35 AM
Use client script
if(!g_form.getDisplayBox('assignment_group').value)
{
g_form.setReadOnly('assigned_to',true);
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2019 04:42 AM
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
//Type appropriate comment here, and begin script below
if(!g_form.getValue('assignment_group'))
{
alert('please first select the assignment group');
g_form.setValue('assigned_to','');
}
}
write onchange client script on assigned to field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2019 06:26 AM
Hi,
I also want to make the Assignment Group field Mandatory at the same time.
Can you please let me know how to achieve the same.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2019 04:43 AM
Add an ui policy , which makes assigned to read only when assignment group is empty