Page 1 of 1
[SOLVED] How do I hide all but the last four digits with either a "*" or a bullet?
Posted: Fri Jul 20, 2018 1:42 am
by karmacomposer
How do I hide all but the last four digits with either a "*" or a bullet?
I have a SSN and when a user reads it back (database style), I need the LiveCode app to hide all but the last four digits with either a "*" or a bullet.
From my last question, and thanks to Bogs, I see that a item delimeter of "-" and choosing the first 5 numbers out to give me what needs to be masked, but how do I mask/replace the numbers with another character?
Thank you.
Mike
Re: How do I hide all but the last four digits with either a "*" or a bullet?
Posted: Fri Jul 20, 2018 5:38 am
by ClipArtGuy
Code: Select all
set the itemdelimiter to "-"
put "***" into item 1 of fld "yourSsnField"
put "**" into item 2 of fld "yourSsnField"
Re: How do I hide all but the last four digits with either a "*" or a bullet?
Posted: Fri Jul 20, 2018 5:41 am
by karmacomposer
Thank you yet again!
Mike
Re: [SOLVED] How do I hide all but the last four digits with either a "*" or a bullet?
Posted: Fri Jul 20, 2018 1:15 pm
by dunbarx
Hi.
There are other threads on this. It is far better to hide the characters themselves as they are entered, and if you want to leave the last four digits in the clear, then well and good.
See "Best way to validate SSN"
Craig Newman
Re: [SOLVED] How do I hide all but the last four digits with either a "*" or a bullet?
Posted: Fri Jul 20, 2018 1:16 pm
by dunbarx
Aha.
I see you started that thread.
But if you have the first, much better, solution, why do you need the second?
Craig
Re: [SOLVED] How do I hide all but the last four digits with either a "*" or a bullet?
Posted: Fri Jul 20, 2018 1:26 pm
by Klaus
Mike, Mike, Mike...

Re: [SOLVED] How do I hide all but the last four digits with either a "*" or a bullet?
Posted: Fri Jul 20, 2018 1:42 pm
by karmacomposer
@Klaus:
I know I know. I'm trying to knock out this prototype so I can get all you LiveCoders that have agreed to work with us a bunch of work (lol).
We have 6 clients waiting for me to finish it so they can go with us.
I'm ALMOST done.
Mike
P.S. NDAs are done but we are going through a necessary name change to the company - for legal reasons - so right after we decide on the new name, we will get the NDAs out.