跳至內容
選單
此問題已被標幟
2 回覆
5255 瀏覽次數

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
1213
0
3月 25
826
0
11月 24
1440
0
6月 24
1514
1
6月 24
1990