Pre Append numbers to a form field randomly

Posted 1 month ago by glasstream2000

I'm looking for a way to add numbers randomly to the beginning of the last 4 of a social number. I don't want to keep the entire ssn as I don't need it but need to have 9 digits for importing to another program.

So basically I have an input field that asks for the last 4 of the ssn, I want to have a random generator to add 123-34- to the input field in front of what is sent to the database to make dummy ssn's so the other program will import since it requires 9 digits.

Is this a possibility with laravel 5.6 and has anyone done this or point me in the right direction, or is there a better way to do this?

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.