Change column header label for My Request Widget

ThomasVu
Tera Contributor

How do you change the column heading for the My Request Widget? OOB it says Request, but we made a clone for "Incidents" and would like to change the label to "Incident" instead of "Request".

1 ACCEPTED SOLUTION

Harish KM
Kilo Patron
Kilo Patron

Hi in My request widget you have the below line in HTML

 <span role="columnheader" class="col-xs-6 padder-r-none padder-l-none">${Request}</span> //change Request to Incident here that should do

Regards
Harish

View solution in original post

4 REPLIES 4

Yousaf
Giga Sage

Hi Thomas,

Image is broken can you upload again please 


***Mark Correct or Helpful if it helps.***

Yousaf
Giga Sage

Try This.

Step1. Find the label HTML

find_real_file.png

Step2. In your widget client script, catch and change it.

// Change Field label
// Timeout for data to be loaded
	setTimeout(function(){
		document.querySelector('div[aria-label="Sort by  Short description"]').innerText = "Long Description"
	},3000);

 

Mark Correct or Helpful if it helps.

Thanks,
Yousaf


***Mark Correct or Helpful if it helps.***

Harish KM
Kilo Patron
Kilo Patron

Hi in My request widget you have the below line in HTML

 <span role="columnheader" class="col-xs-6 padder-r-none padder-l-none">${Request}</span> //change Request to Incident here that should do

Regards
Harish

That worked. Thank you!