how can i highlight a field on a form.

reyservicenow
Tera Expert

during my research i have found:

Form fields in docs

but I was thinking to use that orange indicator for a change to the incident form that highlights the fact that a due date is about to pass or has passed.

how can I create a new indicator... and what is the best way to do this? with a business rule?   a BR to run after the form has loaded? and then checks the due date field on the incident form?

suggestions anyone?

let me involve the CSS master jim.coyne

Thanks

1 ACCEPTED SOLUTION

I don't think you'll be able to do it in a business rule, but you could use a field style to do this if you don't want to use a client script.



Define field styles



And here's an example of using an advanced condition that involves dates.



Advanced style selection


View solution in original post

7 REPLIES 7

works i made the background field colored not really highlighted the whole field but good enough....i just cant get the Advanced style selection   to work...


What are you using and what exactly isn't working?


I am using



javascript:gs.dateDiff(gs.now(), current.due_date.getDisplayValue(), true) < 0



for the value field to check if the date is past today's date like this document says...Define field styles     then it will highlight the field.