- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2017 03:37 AM
Please check my previous post which is mentioned at https://community.servicenow.com/thread/251626?q=Emergency%20change%20request and request your help in completing my task.
As mentioned by Mr. Sudharsan Vignesh, I was able to edit the "Interceptor:Change Request" - "Direct to Emergency Change" - update the "Target URL" from "change_request.do?sys_id=-1&sysparm_query=type=emergency" to "change_request.do?sys_id=-1&sysparm_query=type=emergency^priority=1" which serves the purpose and solves the problem, but my requirement is to set the "Priority" field value as "1-Critical", "Risk" value as "Very High" and Impact field value as "1-High" along with which no user should be able to change it and it should appear as "Type" field value "Emergency" which as checked in the "Form Design" is of Label Type "Choice type" > "Dropdown with none" but displays a value as "Emergency" when clicked on URL: Emergency: Unplanned changes necessary to restore service. These changes require CAB authorization o...
Please find the related screenshots or images.
For now I am getting this exception on one of our dev instance.
Kindly help me completing my task.
Solved! Go to Solution.
- Labels:
-
Change Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2017 09:59 PM
Harish,
As suggested and recommended by you, I have done the following.
- I included your code in the client script as mentioned in the screenshot.
After which clicking on any of the Change Requests that is Normal, Standard or Emergency.
I was able to receive all the Priority, Risk and Impact fields on read only mode as per the screenshot for all change requests Normal, Standard and Emergency .
- Hence, I clicked on the "Edit Interceptor" on the right side as mentioned in the screenshot.
I got the next screen where I could edit each and every change request.
- I clicked on change request "Normal" and changed the "Target URL" to change_request.do?sys_id=-1&sysparm_query=type=normal^priority=3^risk=3^impact=3.
When I clicked on change request as "Normal" I was able to few the screen with Priority = 3 - Moderate, Risk = Moderate and Impact = 3 - Low. This was my requirement, hence helped me to accomplish the task.
- Likewise, I am changing it for another change request which are as mentioned :
- Standard - change_request.do?sys_id=-1&sysparm_query=type=standard^priority=2^risk=2^impact=2
- Emergency - change_request.do?sys_id=-1&sysparm_query=type=emergency^priority=1^risk=1^impact=1

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2017 04:12 AM
Hi Nandan. You can make the fields read only with the help of ACL.
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2017 02:28 AM
Dear Mr.Harishkumar,
Is there any specific access control list that I need to edit?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2017 02:35 AM
Tell me when you need the fields to be read only?
You have to create a new ACL . For example. I am making priority field read only.
Another way would be to use UI policy or Client script. But this will make readonly only on form. But ACL will make readonly both on list and form as well.
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2017 04:16 AM
Dear Mr. Harishkumar,
I am just repeating what I said, set the "Priority" field value as "1-Critical", "Risk" value as "Very High" and Impact field value as "1-High" along with which no user should be able to change it when clicked on URL: Emergency: Unplanned changes necessary to restore service. These changes require CAB authorization only. This is my requirement.