> ```
> Qualtrics.SurveyEngine.addOnload(function() {
> var score = parseFloat("${gr://SC_cvbYKS7ZMqwXmgR/Score}");
> score = Math.round(score * 10) / 10;
> Qualtrics.SurveyEngine.setEmbeddedData("score1", score.toFixed(1));
> });
> ```
I've tried the following codes, on UnLoad, and doesn't seem to work. Any suggestions?
> ```
> var Q8 = ("${q://QID8/ChoiceTextEntry/Value}");
> var Q8 = Q8.toFixed(2);
>
>Qualtrics.SurveyEngine.setEmbeddedData("score.Q8", Q8);
>```
and
> ```
> var Q8 = ("${q://QID8/ChoiceTextEntry/Value}");
>
>Qualtrics.SurveyEngine.setEmbeddedData("score.Q8", Q8.toFixed(2);
>```
Best answer by TomG
View original