Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
5383 Vizualizări

Give color for a field in form view

Imagine profil
Abandonează
Cel mai bun răspuns

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

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

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Autor

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

Related Posts Răspunsuri Vizualizări Activitate
1
mar. 25
1462
0
mar. 25
1002
0
nov. 24
1618
0
iun. 24
1637
1
iun. 24
2163