Hide/Disable Post button in Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I would like to disable/hide "Post" button in Portal Form Activity logs:
Also make the text field read-only as well without touching the ACL.
Is this possible?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
1.Possible in Service Portal, and you can do it without touching ACLs, but not via UI Policies. It requires widget-level customization.
2.Don't modify OOTB widgets directly.
Go to Service Portal → Widgets
Find: Activity Stream
Clone it
3.Widget Server Script
data.readOnly = true;
Or conditionally:
data.readOnly = !gs.hasRole('itil');
4.Widget HTML
<textarea ng-disabled="data.readOnly"></textarea>
<button class="btn btn-primary"
ng-disabled="data.readOnly">
Post
</button>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
When i clone the Activity Stream widget, how do i point the Form widget to the Activity Stream cloned widget instead of the OOB one?
Thanks
