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:09 AM
try this and it might work in service catalog view but not in portal
function onLoad() {
g_form.setLabelOf('<internal name of MRVS>', '')
}
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 01:09 AM - edited ‎12-30-2024 01:32 AM
@Yi Ming Song try using below script :
function onLoad() {
try {
var fieldName = 'multi_row_variable_set'; // Replace with your MRVS field name
var element = g_form.getGlideUIElement(fieldName);
if (element && element.getLabelElement) {
element.getLabelElement().style.display = 'none';
}
} catch (e) {
console.error('Error in hiding MRVS label: ' + e);
}
}
Also try using below code in onload client script :

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-30-2024 01:11 AM
Hello,
I don't think this is possible OOB. you would need DOM manipulations here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-30-2024 01:16 AM
I tried the above script but it didn't work
I don't think there is a direct way for this.
you will have to use DOM manipulation here which I won't recommend.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader