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

i have a password field ,and with a boolean field i'd like to show and hide the password, how to make it possible?


thanks in advance

아바타
취소
작성자

Hello Artem ,

Thank you for the advice.

But what i ment by this is normally the password field shows characters as stars (*********) but when i check on a boolean field i need the field to show the real charector like "abcd123" ,

베스트 답변

<field name="mypassword" attrs="{'invisible': myboolfield"/>

Does it work?

아바타
취소
작성자

Hello Artem ,

Thank you for the advice.

But what i ment by this is normally the password field shows characters as stars (*********) but when i check on a boolean field i need the field to show the real charector like "abcd123" ,

작성자

Thank you Artem ,

The link you gave me solve my problem

베스트 답변

Hi Sreeraj,

Try this..

<field name="show_password"/>      

<field name="password" password="False" attrs="{'invisible': [('show_password', '=', False)]}"/>                               

<field name="password"  password="True" attrs="{'invisible': [('show_password', '=', True)]}"/>

아바타
취소