How to keep MRVS readonly with remove all button?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2023 05:25 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2023 05:31 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2023 09:10 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2023 06:36 AM
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!