I am trying to build a prototype that features a field for credit card number. I would like the field to autoformat card information as a user types it in so it will look like this: “1234 5678 9012 3445” with the spaces in between autofilled. The card lengths for this prototype will only be 16 digits, so I would like the numbers to be in four, four digit segments.
Does anyone know how I would do this? Thank you all!