Hi there!
With the very helpful posts: https://www.qualtrics.com/community/discussion/comment/17700#Comment_17700 and https://www.qualtrics.com/community/discussion/9916/math-operation-and-cleave-function by TomG, I was able to:
1) add thousand separators to a numeric text input field;
2) record the initial numeric input without thousand separators upon unload of the page (in order to perform mathematical operation on it).
What I would now like to do, is:
3) on a new page, display the outcomes of those calculations, but again with the thousands separator.
Being able to copy and paste code, but clearly not write it myself, what I have more or less randomly tried is this:
In the question JS editor:
Qualtrics.SurveyEngine.addOnload(function()
{
/*Place your JavaScript here to run when the page loads*/
var cleave1 = new Cleave(".Separator", {numeral: true, numeralThousandsGroupStyle: 'thousand'});
});
In the question HTML editor:
I guess it was worth a shot, but unsurprisingly it does not work...
Anyone who could help me out with this? Any advice is very much appreciated!
Best answer by TomG
View original