Skip to Content
Menu
This question has been flagged
2 Replies
5307 Rodiniai

Give color for a field in form view

Portretas
Atmesti
Best Answer

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

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

Portretas
Atmesti
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

Portretas
Atmesti
Autorius

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

Related Posts Replies Rodiniai Veikla
1
kov. 25
1250
0
kov. 25
850
0
lapkr. 24
1459
0
birž. 24
1537
1
birž. 24
2023