TomG
Found this and loved your coding...BUT, I get the $ and the Decimal point, but not the comma? What am I missing?
https://community.qualtrics.com/XMcommunity/discussion/comment/38803#Comment_38803It depends on the browser and the default locale. See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toLocaleString
TomG Sorry, I went to the article, but I'm still perplexed. I couldn't decipher why I didn't get a comma? I'm in the US, using English as my browser language.
I think the "toFixed(2)" in the code was making it do decimals instead of commas. I tweaked to this and it worked:
Qualtrics.SurveyEngine.addOnload(function() {
jQuery("#number").text("$"+parseFloat("${e://Field/NameofField}")
.toLocaleString("en-US"));
});
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.