- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2022 11:49 PM
Hi All,
I want to restrict Caused by Change and Change Request field should not have same change number.
can you please help me on this.
Thanks.
Arun Pratap
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2022 11:55 PM
You can restrict this by 2 On change client scripts on caused by change and change request field.
1. On change of "caused by change" field
if(newValue==g_form.getvalue('change_request'))
{
alert("alert msg");
g_form.ClearValue('caused_by_change'); // check backend value of caused by change
}
2. On change of "change request" field
if(newValue==g_form.getvalue('caused_by_change')) // check backend value of caused by change
{
alert("alert msg");
g_form.ClearValue('change_request');
}
Raghav
MVP 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2022 11:54 PM
Hi @Arun33 ,
You can create UI policy as below
UI policy action:--
tick clear the field value
Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2022 11:55 PM
You can restrict this by 2 On change client scripts on caused by change and change request field.
1. On change of "caused by change" field
if(newValue==g_form.getvalue('change_request'))
{
alert("alert msg");
g_form.ClearValue('caused_by_change'); // check backend value of caused by change
}
2. On change of "change request" field
if(newValue==g_form.getvalue('caused_by_change')) // check backend value of caused by change
{
alert("alert msg");
g_form.ClearValue('change_request');
}
Raghav
MVP 2023