Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
5252 Prikazi

Give color for a field in form view

Avatar
Opusti
Best Answer

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

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

Avatar
Opusti
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
Opusti
Avtor

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

Related Posts Odgovori Prikazi Aktivnost
1
mar. 25
1213
0
mar. 25
826
0
nov. 24
1440
0
jun. 24
1514
1
jun. 24
1990