The below Loop&Merge question javascript does not throw an error but also does not calculate javascript variables "n" nor "vidurl" and, hence, doesn't set the embedded variables 1stVideo, etc.) . Anybody know why? It looks so simple!
--------------------------------------------------------
Qualtrics.SurveyEngine.addOnload(function()
{
var n = "${lm://CurrentLoopNumber}";
var vidurl = "${lm://Field/1}";
If (n = 1) {
Qualtrics.SurveyEngine.setEmbeddedData("1stVideo", vidurl);
}
If (n = 2) {
Qualtrics.SurveyEngine.setEmbeddedData("2ndVideo", vidurl);
}
If (n = 3) {
Qualtrics.SurveyEngine.setEmbeddedData("3rdVideo", vidurl);
}
});
Loop & Merge question cannot set embedded variable via javascript?
Sign up
Already have an account? Login
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join.
No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login with Qualtrics
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join. No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login to the Community
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join.
No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login with Qualtrics
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join. No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
