Skip to Content
मेन्यू
This question has been flagged
2 Replies
5246 Views

Give color for a field in form view

Avatar
Discard
Best Answer

<field name="date" style = "color: red" attrs="{'invisible': [('state','!=','cancel')]}"/>

<field name="date" style = "color: green" attrs="{'invisible': [('state','=','cancel')]}"/>

Avatar
Discard
Best Answer

Hi,

Try this

< label for="your_field"  style="color:red" />

< div >
< field name="your_field" style="color:red" />
< / div >

Likewise you can change color to blue, green etc.

Hope it helps,

Thanks

Avatar
Discard
Author

i want to change colour of field based on condition.how to do that?

Related Posts Replies Views Activity
1
मार्च 25
1211
0
मार्च 25
824
0
नव॰ 24
1437
0
जून 24
1510
1
जून 24
1988