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
02-04-2019 07:36 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2019 07:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2019 12:38 AM
Hi Raju,
Can't I add some code in my above mentioned Client Script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2019 12:51 AM
You can use g_form.setMandatory('field_name', boolean) and g_form.setReadOnly('field_name', boolean) to make a field mandatory or read only in a client script. It's best practice to use UI policies in most cases though.
The assignment group is always going to be a mandatory field, there's no reason to only make it mandatory when someone tries to add an assignee, you might as well have it mandatory when the form loads so your users don't waste time looking for assignee's only to be thrown an error.
All you need is a UI policy with the condition 'Assignment group is empty' and you can add policy actions to make the assignment group field mandatory and the assigned to field read only.
99% of the time, if you're making fields visible/mandatory/read-only the best thing to use is a UI policy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2019 01:03 AM
You can create UI policy for that with condition :-
If Assignment Group is empty : Set Assigned to field "Read Only" .
OR
If Assignment Group is empty : Set Visibility of Assigned To field to "False".