I am unable to change the font color of a field's label.
In my custom object, I have a reference to the SPAN element (var myElement) which contains field label text.
I validated this by dumping its text and HTML to the console.log.
My code uses the following js which is in the Sys.Application.add_load(function
myElement.style.color = 'red';
No errors occur but the text is still black.
We're running R6.8 P4 HF2 (6.8.00402.1001).
Any help on how to properly set the font color of a field's label would be appreciated.
Thanks Ilya. Is there a good way to get the loitem #. I have the code to look up the fieldid. I want the code to be generic so when migrated to other instances it works without having to change the code. Thanks
Which function returns the correct id of the label? If I use lookupFieldId passing the field name it returns the fieldId but this is not the id used for the field label (in the <SPAN id='loitem ). Is there another function or a way to call lookupFieldId and have it return the label id used with the loitem# ? Again we're on R6.8 P4 HF2. Thanks