URGENT PLS HELP :: How to change color of field depending on certain criteria

Hi,

Pls help some one.I need to change the color of a particular field say “STATUS” depending upon the value in the CURRENT STATUS field.i.e,if the CURRENT STATUS = “APPROVED” then the text in the STATUS Field should be Red in color and in case the status in the CURRENT STATUS = “REJECTED” then the font color of STATUS field need to be green.

I am using NotesRichTExtStyle but its not working.

Pls help someone.Its really URGENT!!!

Thanks in Advance!!!

K

Subject: URGENT PLS HELP :: How to change color of field depending on certain criteria

Hide your status field. Then add a programed table with two rows. In each row add a computed for display field set to display your status. Set each field to a diffrent color text. Set the table to display the rows based on the status value.

HTH

James

Subject: RE: URGENT PLS HELP :: How to change color of field depending on certain criteria

Thanks James,That seems to be only way out now.

But do tell me one thing…Is it not possible to change the color of a Text Field using RichTextStyle.Does this thing only work when we are mailing???

If somebody knows then pls tell…

Thanks…

Khushi

Subject: RE: URGENT PLS HELP :: How to change color of field depending on certain criteria

As far as I know, the Rich Text style can be used to append to a rich text field, add text in with those font settings etc and so on. It can’t be used to dynamically change the color of a text field…

That being said … I think urgent is in the eye of the beholder but isn’t it ‘against the rules’ to use it in here?

Subject: RE: URGENT PLS HELP :: How to change color of field depending on certain criteria

Ya…But u need to save that generated Document if u want that the changes in Text etc r visible…else those things will not be visible.

khushi

Subject: RE: URGENT PLS HELP :: How to change color of field depending on certain criteria

That’s kind of the point … use the javascript or the table method…

Subject: URGENT PLS HELP :: How to change color of field depending on certain criteria

How in the world is the color of a font urgent? will someone die or be injured because of it? Forgive the cheekiness, but the urgent is not really needed:-).

Subject: RE: URGENT PLS HELP :: How to change color of field depending on certain criteria

I needed to do that asap…Hope the urgent is understood!!!

Subject: URGENT PLS HELP :: How to change color of field depending on certain criteria

hi khuski !!

only javascript can help u do this…write the code in the onBlur of the field…

and use the style class of the field…to manipulate the color.

–kaushik das