Add commas (cleave?) after certain number of digits? | XM Community
Skip to main content

Hi all - I'm trying to facilitate automatically inputting a comma every 7 digits of a multi-line text entry box. Essentially, the only values that can be put into this field are numbers based on where the input it coming from, and to separate them, I'd like to have the form automatically insert a comma every 7th digit. I've played around with JS cleave a little bit, but am having some trouble getting this to work as expected. Anyone have any ideas? Thanks!

Be the first to reply!

Leave a Reply