As I could not find the same question, I would like to ask below as a new question.
I would like to add Javascript in question.
To restrict the user to input the number
To output the inputted number to three digit separater
For example: If user input "1000" automatically change to "1,000"
Solved
JavaScript To format the number to three digit separater for output
Best answer by Tom_1842
Hi there, I found a thread that I think will be helpful to you:
https://community.qualtrics.com/XMcommunity/discussion/7469/adding-commas-to-numeric-responses-in-a-matrix-table
In that, C_Bohn provides some JavaScript that adds the comma delimiter. Add the below to your survey's Header over in the Look & Feel:
Then, add the below to the Text Entry question's JavaScript:
var inputs = jQuery("input[type='text']");
inputs .toArray() .forEach(function(field)
{
new Cleave(field,
{
numeral: true,
numeralThousandsGroupStyle: 'thousand'
});
});
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
