How to hide label of multi row variable set
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-30-2024 01:03 AM
Is there a way to hide the label of the MRVS?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-30-2024 01:20 AM
Do you still require this to be done even when DOM manipulation is not a best practice?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-30-2024 02:28 AM
if you still require then you can use onLoad catalog client script and set UI type - ALL
Ensure isolate script field is False so that DOM manipulation works. This field may not be on form but you can make it false from list
function onLoad() {
//Type appropriate comment here, and begin script below
setTimeout(function() {
var searchTitle = "Servers"; // give the MRVS Title here
if (window != null) {
// native
$j(document).ready(function() {
$j('span').each(function() {
if ($j(this).text() === searchTitle) {
$j(this).hide();
}
});
});
} else {
var aTags = this.document.getElementsByClassName("sp-field-label-padding ng-binding");
for (var i = 0; i < aTags.length; i++) {
if (aTags[i].textContent.toString() == searchTitle) {
aTags[i].style.display = 'none';
break;
}
}
}
}, 3000);
}
Output: Working fine in both native + portal
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-30-2024 08:39 PM
Hope you are doing good.
Did my reply answer your question?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-31-2024 09:17 PM
Hope you are doing good.
Did my reply answer your question?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader