How to keep MRVS readonly with remove all button?

Sri56
Tera Contributor

Hi All,

 

We have a requirement where we have to keep the MRVS readonly.

if we do so, even add/ remove all button is hiding.

But we need to hide add button and keep 'remove all' button or any sort of delete action to remove all entries.

 

How can we achieve this one?

Please help!

 

Thanks,

Sri

7 REPLIES 7

You can troubleshoot this by adding an alert on icon and the getAttribute syntax inside the for loop to see where the disconnect is.  User your browser developer tools to inspect the icon to verify the ClassName, and that there is a data-original-title attribute and the value stored there

BradBowman_0-1687350689519.png

 

Hi Brad,

 

Seems like the below piece of code not working on service portal:

 

var icon = this.document.getElementsByClassName("wrapper-xs fa fa-close");
for(j=0; j<icon.length; j++){
if(icon[j].getAttribute("title") == 'Remove Row'){
icon[j].style.display='None';
}
}

I need to remove edit/delete icon on portal.

 

Please help.

 

Thanks,

Sri

Consider this an AI failure.  Lots of information, some of it remotely accurate, but none of it useful for addressing what the author is actually trying to accomplish.  If this is the future, no thanks!