Hello! I’ve tried the following regex to test for text entry answers (string) that contain 6 to 10 characters: ^.{6,10}$While this works for validating the question, it does not work for terminating respondents whose answers don’t fall within these parameters.(I’m aware that I could change the data type from string to number but I am new to coding so not sure how to do so in javascript -- a kind person shared code for automatically adding commas to currency numbers but this makes the value a string so I’m trying to figure out how to validate based on number of characters).
I’m new to custom code and have been reading posts about how to automatically add commas and decimals for currency questions in a text entry box or within form field type questions with text entry.I’ve read up on Cleave.js and have tried code in these posts and have not been able to figure out:I have a simple question on annual budget with one text entry option. I want respondents to automatically see commas as they type in numbers, and only be allowed to enter up to two decimal points. Ideally, I’d also be able to keep the placeholder currency sign in the box itself as they’re typing in the number, but I know that’s a lot to ask.Any help would be greatly appreciated.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.