0

Password TextField

asked 2022-10-20 00:18:07 +0800

bztom35 gravatar image bztom35
103 4

Is there an option to show password while typing in the password in textfield?

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-10-21 11:20:31 +0800

hawk gravatar image hawk
3073 1 5
http://hawkphoenix.blogsp... ZK Team
<textbox id="pw" type="password" value="abc"/>
<checkbox label="show password" onCheck="toggleType()"/>
<zscript><![CDATA[
public void toggleType(){
    if ("password".equals(pw.getType())){
        pw.setType("text");
    }else{
        pw.setType("password");
    }
}
]]></zscript>
link publish delete flag offensive edit

Comments

please click "accept" on this answer, if it works for you. Everyone also knows. :)

hawk ( 2022-10-27 18:27:00 +0800 )edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2022-10-20 00:18:07 +0800

Seen: 4 times

Last updated: Oct 21

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More