Make workspace finance request form read only for a group
Community Alums
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-10-2024 01:47 AM
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-10-2024 01:52 AM - edited ā10-10-2024 01:53 AM
HI @Community Alums
To make a workspace form read-only for a particular group in ServiceNow, follow these steps:
1. Use a UI Policy:
A UI Policy can be configured to dynamically make fields or forms read-only based on conditions, including group membership.
Steps:
-
Go to the Form Layout:
- Navigate to the form you want to make read-only.
-
Create a UI Policy:
- Navigate to System UI > UI Policies.
- Click New.
- Set the Table for the form you want to modify.
- Add a condition to check the userās group membership, e.g.,
gs.hasRole("group_name") == false
. and view as workspace. - Set the policy to run Client-Side (make sure the "Client" checkbox is checked).
-
Create UI Policy Actions:
- Under the UI Policy Actions tab, specify the fields you want to make read-only.
- Set the Read-Only option to true.
-
Save and Test:
- Test the form by impersonating a user from the targeted group to verify if the form is read-only for that group.
********************************************************************************************************
Please appreciate the efforts of community contributors by marking the appropriate response as the correct answer and helpful. This may help other community users to follow the correct solution in the future.
********************************************************************************************************
Community Profile LinkedIn YouTube Medium TopMate
********************************************************************************************************
Please appreciate the efforts of community contributors by marking the appropriate response as the correct answer and helpful. This may help other community users to follow the correct solution in the future.
********************************************************************************************************
Cheers,
Prashant Kumar
ServiceNow Technical Architect
Community Profile LinkedIn YouTube Medium TopMate
********************************************************************************************************