콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
5261 화면

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
1214
0
3월 25
826
0
11월 24
1441
0
6월 24
1517
1
6월 24
1990