How to make worknotes mandatory if priority changes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2017 03:25 AM
Hi...
I have to make the "work notes" field mandatory if the "priority" field changes, I have achieved this through "client script" but i need to achieve this using UI policy
Through UI policy what is the condition or script to be used ?
Can anyone help to achieve this?
- Labels:
-
Incident Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2017 03:38 AM
Hi Asha,
Client script is the best way to achieve this requirement. UI Policy will work like onChange Client Script only there is the condition set as 'Priority' is '1-Critical' or something like that. Once you change the value of the priority field to '1-Critical' the UI policy will run and the defined UI Policy Actions will be applied.
Better I would suggest you to carry on with the Client Script. Please find the relevant discussions on the same topic below.
2. Executing UI Policy on text field change
I hope this helps.Please mark correct/helpful based on impact
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2017 04:03 AM
Hi Asha,
You can write a client script or ui policy will also do.
OnChange of client script.
function onChange()
{
if(g_form.getValue('Priority')==5)
{
g_form.setMandatory('work_notes',true);
}
else
{
return false;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2017 04:04 AM
You will have to check the exact function name since i just typed it on screen but logic will do work.
Hope this helps you.
Regards,
Atul Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2017 11:00 PM