Hiding UI actions on service portal form widget

kkronborg
Giga Contributor

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.

2 REPLIES 2

Ashutosh Munot1
Kilo Patron
Kilo Patron

Hi,

find_real_file.png


Thanks,
Ashutosh

DrewW
Mega Sage
Mega Sage

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.