Hide Remove all and cross button from multirow variable set

1234567789hrebn
Tera Expert

Hi All,

 

i need to hide remove all and cross buttons from multirow variable set .

 

19 REPLIES 19

Hi Isela,

 

Did you find a solution for the Service Portal?

 

Thank you,

S.

@sutot Not yet. 😕 If I find a solution, I will let you know. 



Want to connect? Follow me on LinkedIn

Kash2
Kilo Contributor

Create a widget with client script:-

api.controller=function($scope) {
  /* widget controller */
  var c = this;

    $scope.$watch(function(){
         var editOption = document.getElementsByClassName('wrapper-xs fa fa-pencil');
            for (var i = 0; i < editOption.length; i ++) {
                        editOption[i].style.visibility = 'hidden';                    
        }
        return false;
    }, function(value){    
        
        });    
 
};

 

Mark Answer correct

Anjum1
ServiceNow Employee
ServiceNow Employee

Hi @isela , did you try setting max_rows attribute in Variable Set attributes field of Multi Row Variable Set. It works in platform as well as portal to disable Add button after specific number of rows addedfind_real_file.png

To hide other buttons as well you can use a catalog ui policy on catalog item and chose the variable set in ui policy action and make readonly field true. 

Rich Dennis
Tera Expert

How to hide buttons in Multi-Row Variable Sets (MRVS) without DOM manipulation


https://www.servicenow.com/community/now-platform-forum/how-to-hide-buttons-in-multi-row-variable-se...