Form Field Style not applying

xiaix
Tera Guru

Been here:   Defining Field Styles - ServiceNow Wiki

Been here:   Field styles are not getting applied

Still no go.   What's funny is in the supposed answer for Field styles are not getting applied   that Pradeep gave, his screenshot doesn't even show what it took.

Anyway... my situation:

find_real_file.png

find_real_file.png

As you see, no background-color red.

1 ACCEPTED SOLUTION

Yes yes, I agree with all that.   My apologies for trying to beat this dead horse.


I found a non-DOM solution:



g_form.flash('u_nonit', '#ad7', 0);


g_form.flash('u_nonit', '#ad7', 0);



(found here:   https://community.servicenow.com/thread/164290 )



btw...


Look forward to seeing you at K18!


View solution in original post

13 REPLIES 13

So field styles change the style of the value and not the label??


Correct. Field styles are applied to the value when the value meets the value condition. In true/false, it would be 0 or 1.


I call foul!   (lame).   I suppose I'll have to use an onload client script for DOM manipulation to change the field label.     Booooooo.


When ever we applying field styles it looking like this


style.PNG


xiaix
Tera Guru

find_real_file.png