highlight a field label

Chiranjeevi Go1
Giga Expert

Hi, I have a requirement to highlight a field label with different colors and font. It is only to show some information to the users but not for the user input. Please advise what will be the best way to achieve it? 

Thanks,

Chiranjeevi

1 ACCEPTED SOLUTION

Supriya Sirse1
Giga Expert

Hi,

 

You can try with below script, this is working for me.

function onLoad() {
//Type appropriate comment here, and begin script below


var incidentcategory = document.getElementById('label.incident.category');
incidentcategory.style.color = "red";

}

 

Regards,

Supriya S.

 

Kindly Hit  Helpful, Reply,Mark as Correct Answer if you found useful.

 

View solution in original post

8 REPLIES 8

Hi,

 

Have you tried the code? Its is working for me. Please find the below screenshot.

find_real_file.png

Kindly let me know if you have any inputs.

 

Regards,

Supriya S.

 

Kindly Hit  Helpful, Reply,Mark as Correct Answer if you found useful.

Thank you, it's working as expected. 

How can I make the label bold? 

 

 

Hi,

 

incidentcategory.style.fontWeight = 'bold'; can you try this.

 

Regards,

Supriya S.

Supriya Sirse1
Giga Expert

Hi Chiranjeevi,

 

Is the shared solution working for you? Can you please share the update.

 

Regards,

Supriya S.

 

Kindly Hit  Helpful, Reply,Mark as Correct Answer if you found useful.