Catalog Clientscript working in native ui but not in Serviceportal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2023 05:11 AM
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';
}
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2023 05:49 AM
Hi @Roshin Chandra ,
Can you please confirm if the UI Type on your Catalog Client Script is set to All
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2023 05:50 AM
yes It's all