Hide chars field password

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

link76
Posts: 99
Joined: Fri Nov 04, 2011 1:52 pm

Re: Hide chars field password

Post by link76 » Thu Nov 02, 2017 12:12 pm

sorry but the suggestion does not work very well when used in mobile mode.

Do specific features have to be used?

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7237
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Hide chars field password

Post by jacque » Thu Nov 02, 2017 5:49 pm

The "ask password" command has no specific properties you can use to change its appearance or its behavior. I don't use it in either mobile or desktop apps because it was developed for systems back in the 80s and it violates the rules of almost all modern operating systems. And on mobile it is particularly ugly.

Dialog boxes are intrusive, and using them makes your app look dated. Apple HIG says not to use them, and Google doesn't even mention them because Android has never had them.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

MaxV
Posts: 1579
Joined: Tue May 28, 2013 2:20 pm
Location: Italy
Contact:

Re: Hide chars field password

Post by MaxV » Thu Nov 02, 2017 5:59 pm

On mobile you can set the property contentType of a native field to password.
See http://livecode.wikia.com/wiki/MobileControlSet
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7237
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Hide chars field password

Post by jacque » Thu Nov 02, 2017 6:28 pm

MaxV wrote:
Thu Nov 02, 2017 5:59 pm
On mobile you can set the property contentType of a native field to password.
See http://livecode.wikia.com/wiki/MobileControlSet
I forgot about that, it's a much better solution.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”