Hi,
I'm building an experiment in which participants have to move sliders.
I've defined an embedded field that will contain the manipulated slider result (after using java script).
However, it seems that the javascript cannot capture the slider value (into "s1scr" variable) and thus no value is passed to "score" variable (the If statement is not executed correctly). The result is that the piped text shown in the next page is showing the "score" initial value.
Enclosed the javascript code that I've place within addOnload
**
Qualtrics.SurveyEngine.addOnload(function()
{
var s1scr = parseInt("${q://QID3/ChoiceNumericEntryValue/1}");
var score = 0;
if (s1scr == 50)
{
score = 30;
}
Qualtrics.SurveyEngine.setEmbeddedData("score", score);
/*Place your JavaScript here to run when the page loads*/
});**
In addition, enclosed the survey flow and the actual survey!

!

.
Thanks in advance for all your assistance