- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-01-2022 07:21 AM
Hi,
I want to set the state of Approval as read only if state is approved, rejected, cancelled or no longer required at both list and form level.
I have made state read only at form level for above states using UI policy on onload. But I am not able to make it read only on list view.
I tried with list_edit ACL on sysapproval_approver table with above conditions but it makes the state field read only at all conditions as if it is ignoring my conditions.
Tried with oncellEdit client script as well but no luck.
Solved! Go to Solution.
- Labels:
-
Change Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-02-2022 03:31 AM
Hi,
you should not use &&
you should use those as individual line of codes.
regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-01-2022 07:35 AM
Hi,
in the ACL you should use State = Requested since you want edit to happen when only state is not approved, rejected, cancelled or no longer
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-01-2022 07:49 AM
Hi Ankur,
Thanks a lot for your immediate help. I modified the ACL and it worked . Can you please suggest if at form level using UI policy in this case is good or not?
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-01-2022 08:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-02-2022 03:31 AM
Hi,
you should not use &&
you should use those as individual line of codes.
regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader