コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
5265 ビュー

Give color for a field in form view

アバター
破棄
最善の回答

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

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

アバター
破棄
最善の回答

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

アバター
破棄
著作者

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

関連投稿 返信 ビュー 活動
1
3月 25
1215
0
3月 25
827
0
11月 24
1441
0
6月 24
1517
1
6月 24
1990