Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
4963 Vistas

Give color for a field in form view

Avatar
Descartar
Mejor respuesta

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

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

Avatar
Descartar
Mejor respuesta

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?

Publicaciones relacionadas Respuestas Vistas Actividad
1
mar 25
719
0
mar 25
494
0
nov 24
1022
0
jun 24
1137
1
jun 24
1600