- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2023 07:52 AM - edited 04-23-2023 11:38 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2023 01:59 AM
There is OOB write acl which allowing all fields to be editable only in draft and assess states only.
Create ACl like below and write below client script or simple UI policy also works
Bharath Chintala
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2023 08:42 AM
Hi @servicenow lath ,
I trust you are doing great.
To ensure that the Additional Information field is not read-only in monitor state in the Risk Register table, you can follow these steps:
- Navigate to the Risk Register table in ServiceNow.
- Click on the "gear" icon in the top right corner of the screen to access the table configuration menu.
- Select "Configure > Form Layout" from the menu.
- Locate the "Additional Information" field on the form and click on the edit icon (pencil) next to it.
- In the field properties dialog box, uncheck the "Read only" checkbox.
- Click on the "Save" button to apply the changes.
// Get a reference to the Risk Register table
var riskRegisterTable = GlideRecord('rm_risk');
// Query for records in monitor state
riskRegisterTable.addQuery('state', '=', 'monitor');
// Loop through the results and update the Additional Information field
riskRegisterTable.query();
while (riskRegisterTable.next()) {
riskRegisterTable.setValue('additional_information', 'New value');
riskRegisterTable.update();
}
Was this answer helpful?
Please consider marking it correct or helpful.
Your feedback helps us improve!
Thank you!
Regards,
Amit Gujrathi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2023 09:04 PM
@Amit Gujarathi Where do i need to write this script ? in BR or anything else ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2023 01:59 AM
There is OOB write acl which allowing all fields to be editable only in draft and assess states only.
Create ACl like below and write below client script or simple UI policy also works
Bharath Chintala