Skip to main content
Participant
March 27, 2024
Question

Script needed

  • March 27, 2024
  • 2 replies
  • 201 views

I have a multi part form which calls for the social security number in multiple places. In some places it is entered as normal but in others each digit is it's own field.

So, I would like to be able to type the socail normally i.e. 123-45-6789 but have each number fill a dedicated field elsewhere in the form i.e. [][][]-[][]-[][][][] So, each number will fill each of those boxes.

Any help writing a script like taht would be appreciated.

This topic has been closed for replies.

2 replies

try67
Community Expert
Community Expert
March 28, 2024

This is not a very good idea. For example, if the user made a mistake and wanted to go back and delete what they entered it will be quite difficult to do so. Why not use a single field for this?

Inspiring
March 27, 2024

Did you research how to do it, or do you have any script you already tried?

Or you expect us to give you the script?

You would need to separate each number in the array and then use the loop to populate each fields with the numbers from array.