Skip to Content
Menu
This question has been flagged
2 Replies
4921 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
Mar 25
689
0
Mar 25
453
0
Nov 24
1004
0
Jun 24
1121
1
Jun 24
1582