Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
5302 Zobrazení

Give color for a field in form view

Avatar
Zrušit
Nejlepší odpověď

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

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

Avatar
Zrušit
Nejlepší odpověď

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
Zrušit
Autor

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

Related Posts Odpovědi Zobrazení Aktivita
1
bře 25
1248
0
bře 25
845
0
lis 24
1458
0
čvn 24
1537
1
čvn 24
2021