@TomG Works perfectly! Thanks a lot.
Hi Shashi, Thank you for the prompt answer. I have been trying to use this code in Javascript functionality: <quote> Qualtrics.SurveyEngine.addOnload(function() { jQuery("[id='QR~QID392~5~14']").hide(); }); </quote> However it doesn't work for me. I am not sure if I am using it correctly, or I should use it in CSS code? And if it comes to those tag's class, where I can find it? Sorry if my questions are dummy, I am learning this on the run. :)
Thanks Tom, so now I am trying to use your script with if statement, so the header is displayed after specific question is answered. I am using the code below, however header is visible from the beginning. Could you advise what i should change to make it work? <quote>Qualtrics.SurveyEngine.addOnload(function() { if ($("QR~QID939~1").value > 0) {1==1} else {jQuery("#Header").hide()}; }); </quote>
It works perfectly now, thanks Tom!
Here you go: Qualtrics.SurveyEngine.addOnPageSubmit(function() { var test1= $("QR~QID2~1~1~TEXT").value; var test2= $("QR~QID2~1~2~TEXT").value; var sum = (test1^1 + test2^1) { Qualtrics.SurveyEngine.setEmbeddedData("test", sum); } }); Then if i want to display test embedded variable value using piped text, on the next page it works fine. However in case of loop and merge this QID have an additional parameter indicating number of the loop, that's why i'm trying to use ${lm://Field/1}. Just to clarify, in above code i changed * in my source code to ^, due to text editor recognized that as formatting italic.
Well, so i have tried the same code using it on the block without the loop and merge, and it seems to be working. Regarding adding the text values, i tried and creating a variable using the pattern var1 = "QID", and it returns the value of indicated question, not the text in parenthesis (QID). So my main question is how i can use piped text ${lm://Field/1} in javascript?
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.