تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
5257 أدوات العرض

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
مارس 25
1213
0
مارس 25
826
0
نوفمبر 24
1440
0
يونيو 24
1514
1
يونيو 24
1990