Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
5308 Представления

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?

Related Posts Ответы Просмотры Активность
1
мар. 25
1256
0
мар. 25
854
0
нояб. 24
1461
0
июн. 24
1540
1
июн. 24
2025