Skip to Content
Menú
This question has been flagged
2 Respostes
5306 Vistes

Give color for a field in form view

Avatar
Descartar
Best Answer

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

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

Avatar
Descartar
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
Descartar
Autor

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

Related Posts Respostes Vistes Activitat
1
de març 25
1250
0
de març 25
850
0
de nov. 24
1459
0
de juny 24
1537
1
de juny 24
2023