changing the field lable name in Portal level

sainath3
Mega Guru

Hi Team,

 

we have a requirement that.

In incident table we have user reference field as Name(sys_user), So while displaying on Portal Client want the field Name as "Incident User" without effecting original field name/label.

 

Note: No new field shouldn't create.

 

2 REPLIES 2

Samaksh Wani
Giga Sage
Giga Sage

Hello @sainath3 

 

 

function onLoad() {
//Change the description label to 'My New Label' with bold red text
changeFieldLabel('name', 'Incident User', 'red', 'bold');
}

function changeFieldLabel(field, label, color, weight){
try{
var labelElement = $('label.' + g_form.getControl(field).id);
labelElement.select('.label-text').each(function(elmt) {
elmt.innerHTML = label + ':';
if(color)
elmt.style.color = color;
if(weight)
elmt.style.fontWeight = weight;
});
}catch(e){};
}

 

 

Plz Mark my Solution as Accept and Give me thumbs up, if you find it helpful.

 

Regards,

Samaksh

Samaksh Wani
Giga Sage
Giga Sage

Hello @sainath3 

 

Plz Mark my Solution as Accept and Give me thumbs up, if you find it helpful and close the thread.

 

Regards,

Samaksh