Hiding UI actions on service portal form widget
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2019 05:59 AM
In the OOB Form widget there is a code line like this :
return $scope.data.f._ui_actions.filter(function(action)
where does this '_ui_actions.filter refer to ?
And how can I hide specific UI actions on the form widget.
If I use 'Disable UI Actions on Form' in the widget instance options then I also hide other actions like 'Export to PDF' which I don't want to.
- Labels:
-
Service Portal Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2019 06:22 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2019 06:34 AM
I believe that "_ui_actions" is an array that the .filter is the array filter method
https://www.w3schools.com/jsref/jsref_filter.asp
You can use a specific SP view of the form and then go to the UI Action and at the bottom there is a related list called UI Action Visibility and you can use that to exclude it or you can use the method Ashutosh mentioned but I would avoid that unless you cannot use any other way because its more of a work around to me and not obvious to others that may need to work on this.