Limiting data

I am creating a form which has a requirement for only the last 4 digits of the social security number. Any suggestions on how to limit the character input to only 4 or how can I pre-fill in 000-00 allowing the form user to only be able to input the last 4 digits?

Answers