[SOLVED] How do I put the last four characters of a field (string) in a new variable?
Posted: Thu Jul 19, 2018 11:37 pm
I tried searching all over the internet for the answer and just could not find it.
I have a SSN field and I need to grab the last four digits and append it to another field (making a complete account number).
The SSN field already has a script for proper formatting of the SSN (thank you to the person who helped me with that) and it uses RawKeyDown to do its magic. Do I add this there, after the RawKeyDown, on CloseField or do I put it in the script of the account # field? My thought is, I don't want to break what the auto-formatting is doing.
Also, when reading back the data, how do I hide all but the last four digits with either a "*" or a bullet?
Thank you for your help.
Mike
I have a SSN field and I need to grab the last four digits and append it to another field (making a complete account number).
The SSN field already has a script for proper formatting of the SSN (thank you to the person who helped me with that) and it uses RawKeyDown to do its magic. Do I add this there, after the RawKeyDown, on CloseField or do I put it in the script of the account # field? My thought is, I don't want to break what the auto-formatting is doing.
Also, when reading back the data, how do I hide all but the last four digits with either a "*" or a bullet?
Thank you for your help.
Mike