- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2017 05:03 AM
When Assignment group changes on incident form, i want to make additional comments mandatory, But in UI policy there is no option when assignment group changes. So how can i achive this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2017 05:06 AM
Hello Swathi,
You can write Onchange client script on assignment group,
So when it changes,
g_form.setMandatory('comments field name', true);
Hope this helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2017 05:06 AM
Hello Swathi,
You can write Onchange client script on assignment group,
So when it changes,
g_form.setMandatory('comments field name', true);
Hope this helps

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2017 05:07 AM
Without the changes option in a UI policy, you'll have to go with an onChange client script. Something like this (note this is untested and meant as an example). Place this on the Assignment group field.
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (newValue === '') {
return;
}
g_form.setMandatory('comments', true);
}