Need to change "Add Row" text in MRVS variable

Hafsa1
Mega Sage

I need to change "Add Row" to "Add Candidate details:" in mrvs

Hafsa1_0-1776144628992.png

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron

@Hafsa1 

not possible without DOM manipulation

DOM is not recommended

I shared solution for something similar earlier in 2021, check and enhance

Change the Add Row Button title on MRVS 

onLoad Catalog client script

a) Applies to Catalog Item

1) Ensure Isolate Script field is set to false

2) This field is not on form but from list you can make it false

function onLoad() {
	//Type appropriate comment here, and begin script below
	setTimeout(function(){ 
		var classDetails;
		if(window != null){
			classDetails = document.getElementsByTagName('button');
		}
		else{
			classDetails = this.document.getElementsByTagName('button');
		}
		var k;
		for (k = 0; k < classDetails.length; k++) {
			var value = classDetails[k].innerHTML;
			if(value == 'Add'){
				classDetails[k].innerHTML = 'Add Candidate details:';
				break;
			}
		}
	}, 3000);
}

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

4 REPLIES 4

Tanushree Maiti
Kilo Patron

Hi @Hafsa1 ,

 

In the MRVS modal pop - renaming button is not supported feature .

MRVS modal is built using internal Angular components, and the Add button event is not exposed with us.

 

So this requirement is not feasible to implement.

 

In Catalog form , for MRVS , you can change Add Row to Add Candidate details:  NOT IN Pop-UP.

 

TanushreeMaiti_1-1776147523121.png

 

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

pr8172510
Mega Guru

Hi Hafsa1,Screenshot 2026-04-14 115230.pngScreenshot 2026-04-14 115244.png

If you want to change the label like “Add Candidate details”, you can achieve it using the Variable Set Title 

 Go to your Variable Set:

  • Title → Add Candidate details
  • This will change the heading above MRVS

 For changing the “Add Row” button text

ServiceNow does not provide an out-of-box option to rename the “Add” button in MRVS.

Ankur Bawiskar
Tera Patron

@Hafsa1 

not possible without DOM manipulation

DOM is not recommended

I shared solution for something similar earlier in 2021, check and enhance

Change the Add Row Button title on MRVS 

onLoad Catalog client script

a) Applies to Catalog Item

1) Ensure Isolate Script field is set to false

2) This field is not on form but from list you can make it false

function onLoad() {
	//Type appropriate comment here, and begin script below
	setTimeout(function(){ 
		var classDetails;
		if(window != null){
			classDetails = document.getElementsByTagName('button');
		}
		else{
			classDetails = this.document.getElementsByTagName('button');
		}
		var k;
		for (k = 0; k < classDetails.length; k++) {
			var value = classDetails[k].innerHTML;
			if(value == 'Add'){
				classDetails[k].innerHTML = 'Add Candidate details:';
				break;
			}
		}
	}, 3000);
}

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Hafsa1
Mega Sage

@Ankur Bawiskar  got it . slight modification