
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2016 11:37 AM
In the Incident Management application, how do I make the worknotes mandatory when the priority changes.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2016 12:43 PM
Hi Robin,
Follow below steps to make work notes field mandatory on change of priority.
Select Table name: Your table name (e.g. Incident)
Type: onChange
Field Name: Priority
Script:
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
//Clearing the value of Owner field on change of Owner Group
if(newValue != oldValue)
g_form.setMandatory('work_notes',true);
}
Hope this will help you.
Regards,
Swapnil
PS: Hit like, Helpful or Correct depending on the impact of the response

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2016 05:39 PM
Sorry, you will have to write an onChange client script for this. You
cannot do it with a UI policy, since you want this to trigger on change of
priority field
On Saturday, August 20, 2016, robinchadwick <

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2016 12:39 PM
Write an onChange client script on priority filed incident table and put this script in there
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
g_form.setMandatory('work_notes',true);
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2016 01:15 PM
Is there a way to do it without writing a script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2016 12:43 PM
Hi Robin,
Follow below steps to make work notes field mandatory on change of priority.
Select Table name: Your table name (e.g. Incident)
Type: onChange
Field Name: Priority
Script:
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
//Clearing the value of Owner field on change of Owner Group
if(newValue != oldValue)
g_form.setMandatory('work_notes',true);
}
Hope this will help you.
Regards,
Swapnil
PS: Hit like, Helpful or Correct depending on the impact of the response

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2016 01:15 PM
Is there a way to do it without writing a script?