Hi there :-)
I want to set a variable depending on another question and the respondent should not see it. So i did it like that and it works:
Qualtrics.SurveyEngine.addOnload(function()
{
if("${q://QID114/SelectedChoicesRecode}" == "1") this.setChoiceValue(1,true);
if("${q://QID114/SelectedChoicesRecode}" == "2") this.setChoiceValue(2,true);
if("${q://QID114/SelectedChoicesRecode}" == "3") this.setChoiceValue(2,true);
});
Qualtrics.SurveyEngine.addOnReady(function() {
jQuery('#NextButton').click();*/
});
The problem is even I skip the question by automatically clicking the next button the respondents sometimes see the question for a millisecond so I would like do hide the question completely (seperate block in surveyflow) and put the javascript in the Unload function of QID114.
but therefore I need to change the
this.setChoiceValue to something similar like QID115.setChoiceValue(1,true) but this does not work (I tried many different ways of writing).
is there a possibility to replace the "this" with a question ID?
Thank you so much!!!!
Cheers
Set value in Java
Best answer by TomG
No, there isn't.
You can add CSS ( a style tag) to QID115 to hide it.
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.
