Hi @Ankur Bawiskar thanks for your reply, my requirement is that the field on which I want to apply the color its value is calculated based on other two fields , and hence this field has to be read only. But as soon as I make this field read only I am not able to see the field styles applied on it.

And you saying that it should be applied irrespective of whether it is read only or editable , but in my case its getting applied only if the field is editable .

So I want to know what should I change so that i am able to see the background color even if the field is read only?

Thanks