How to Make Additional comments readonly in Portal and ITIL view on RITM form.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2019 07:47 AM
Hi All,
How to make additional comments on RITM read only(greyed out) if the approval is 'Not yet Requested'?
I tried using UI Policy But it hides the additional comment field when the condition is true, but this doesn't works on Service Portal.
Also checked ACL's still no luck.
Can someone please advise me on the same.
Thanks and Regards,
Meenal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2019 08:46 AM
Can we Hide Additional comments on Portal using the same condition?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2019 09:30 AM
Hi Meenal,
why not use ACL instead?
also what is the view selected on the UI policy? do you mean it is working on native UI but not in portal side?
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
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-26-2019 09:46 AM
Yes It is not working on Portal Side
I also check UI Type to ALL
Thanks and Regards,
Meenal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2019 10:03 AM
Hi Meenal,
Scripted UI policies no longer work on Service Portal or mobile if ‘Isolate Script’ is true or for scoped apps
so either have below approaches
1) set isolate script to false to make the script run
OR
2) you can use UI policy action for that comments field instead of script
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
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-26-2019 10:10 AM
Try using:
g_form.setReadonly('comments', true);