
- 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-21-2016 01:49 AM
UI Policy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2022 12:17 AM
Why is { if(newValue != oldValue) } necessary because I am doing the same think without the if Condition and I get same result. Can you explain

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2017 05:17 AM
i have tried ui policy and script but it doesnt work!!! what should i do?