是否可以在servicenow中更改OnLoad上的字段值字体样式?我能够使用下面的代码更改字段标签样式。如何在ServiceNow中更改字段值字体样式?
// Custom field label colors
var stateLabel = g_form.getLabel('short_description');
stateLabel.style.color= 'red';
stateLabel.style.fontWeight='bold';
我试图以类似的方式更改字段值字体样式,但没有运气。
var stateValue = g_form.getValue('short_description');
stateValue.style.color= 'red';
stateValue.style.fontWeight='bold';
上面的代码没有做任何好处,任何想法让这个工作?
在此先感谢
谢谢我测试JS的方式和它的工作,我现在要研究字段样式,感谢所有的建议:) – Nish 2014-12-04 18:59:31