changing the field lable name in Portal level
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2023 07:01 AM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2023 05:22 AM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2023 01:00 AM
Hello @sainath3
Plz Mark my Solution as Accept and Give me thumbs up, if you find it helpful and close the thread.
Regards,
Samaksh