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

Bhawana Upreti
Tera Guru

Hi,

I have read below code somewhere a year back and found it useful.You can also try this in on load client script.

Syntax:g_form.flash(table_field, colour, flash_length);

if you will write it once it flashes to red, but stays grey. however writing the same code twice  it flash and stays the color you want.

g_form.flash('incident.number', 'red', 0);
g_form.flash('incident.number', 'red', 0);

 

 

If it answered your question, please mark the post correct and helpful to close the thread.

Thanks.

 

Thank you Bhawana for quick response. Yes, it's working but highlighting extra space of the fields which making the field look clumsy. 

 

Thank you.

Yeah, you are right! Supriya's solution is good to go! 🙂

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.