Hello,
I would like to append additional zeros after the comma in a variable, in order to display it to participants. Since I have to many subcases to display, doing it by hand using the survey flow doesn´t seem feasible. I have tried to write a javascript code in which I recall my variable from the embedded data field, apply for example the "toFixed(x)" function, and save it back to embedded data. From what I understand, the problem of this approach is that, when qualtrics saves the variable from the javascript back to the embedded data, it considers it as a numerical variable and hence it´s unable to take into account the zeros that I´ve added (since mathematically they don´t make sense). Is there a way to add additional zeros after the comma of a variable and then display it? Or alternatively, is there a way to save a variable from javascript to qualtrics without using embedded data?
Thanks.
Question
How to append additional zeros after the comma in a variable using javascript?
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
