Catalog Clientscript working in native ui but not in Serviceportal

Roshin Chandra
Tera Contributor

I have created a code For removing( Add/Remove) and Edit icon fron Multi-Row Variable Set .

It's working in native Ui but not on SP. 

I'm attaching the code and screenshots below for reference.

 

 

 

setTimeout(function() {


//hide the add/remove table
var z = this.document.getElementsByClassName("btn btn-sm icon-edit");
var k;
for (k = 0; k < z.length; k++) {
z[k].style.display = 'none';
}
}, 1500);
var y = this.document.getElementsByClassName("sc-table-variable-buttons");
var j;
for (j = 0; j < y.length; j++) {
y[j].style.display = 'none';
}


}

2 REPLIES 2

Community Alums
Not applicable

Hi @Roshin Chandra ,

Can you please confirm if the UI Type on your Catalog Client Script is set to All

SandeepDutta_0-1690807733902.png

 

 

yes It's all