Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3159] Android: UI.TextField.passwordMask not working

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2012-02-03T13:18:26.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelstc-more-info
ReporterSahil Grover
AssigneePaul Dowsett
Created2012-01-31T03:39:37.000+0000
Updated2016-03-08T07:48:14.000+0000

Description

Problem

I am having a window with two text fields added to it one for mobile number and other for pin (password masked )...when i click first text field.....it shows normal text. After clicking on password field when I click back for text field it shows password masked alphabets in it.Any clues whats wrong with the code or its a bug with in titanium !!

Test case

	var windows1 = Ti.UI.createWindow({
	});
	windows1.orientationModes = [Titanium.UI.LANDSCAPE_LEFT];

	var windows1_field = Titanium.UI.createTextField({
		top : "25%",
		width : '80%',
		height : '15%',
		hintText : 'Enter Mobile Number',
		font : {
			fontFamily : 'Arial'
		},
		keyboardType : Titanium.UI.KEYBOARD_PHONE_PAD
	});
	var windows1_pin = Titanium.UI.createTextField({
		top : "45%",
		width : '80%',
		height : '15%',
		hintText : 'Enter Secret PIN',
		passwordMask : true,
		font : {
			fontFamily : 'Arial'
		},
		keyboardType : Titanium.UI.KEYBOARD_PHONE_PAD
	});
	var login_button = Titanium.UI.createButton({
		title : "Go",
		top : "65%",
		width : '35%',
		height : '15%'
	});
	windows1.add(windows1_field);
	windows1.add(windows1_pin);
	windows1.add(login_button);
	win1.open();

Logs

NO LOG OUTPUT

Discussions

http://developer.appcelerator.com/question/131364/password-mask-not-working-properly-#comment-112325

Comments

  1. Paul Dowsett 2012-01-31

    Thanks for raising this ticket. In order for me to escalate it to the core team, all the fields must be complete. Please check it against the [JIRA Ticket Checklist](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist), and add any missing information. For the description field, you can use [this template](https://wiki.appcelerator.org/display/guides/JIRA+Ticket+Template) as a starting point (simply copy and paste it). Furthermore, we must be able to reproduce the issue in order to accept it, and so a test case must be included and run without modification, as per the [Creating a Test Case](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-CreatingaTestCase) section. Thanks in advance for your cooperation. Cheers
  2. Sahil Grover 2012-01-31

    @Paul Doswett I have updated all the stuff here.
  3. Paul Dowsett 2012-01-31

    Thank you Sahil. Would you state the device make and model you have tested? If you have tested in the emulator, you can state that instead. Thanks
  4. Paul Dowsett 2012-02-02

    Sahil, please state your device, in case it's relevant. What version of Titanium have you tested? Thanks
  5. Sahil Grover 2012-02-02

    @paul....hey i found the mistake. I was using passwordMask:'true' and working with passwordMask:true is working fine thnks. :)
  6. Paul Dowsett 2012-02-03

    The error is interesting, as it is not in the test case. Anyway, thanks for updating me about this, Sahil. I will close it now.
  7. Sahil Grover 2012-02-03

    thnks for support Paul ....looking forward for new features and updates in TiTanium ")

JSON Source