> What do you mean by "I use the auto-punch next to hide questions."? I don't know how to do this but would like to!
>
There is a thread on this somewhere but here is the JS for it :)
Qualtrics.SurveyEngine.addOnload(function()
{
this.questionContainer.hide();
$('NextButton').click();
});
If you want to stick with clicking the Next button, you should change addOnload to addOnReady (the timing of Qualtrics changed a while back and the NextButton won't be found using addOnload). I also recommend moving away from prototype.js so use one of these instead:
```
this.clickNextButton();
```
or
```
jQuery("#NextButton").click();
```
> It really doesn't need to be on its own page. You can put it on the same page with a real question and just hide it.
>
> If you want to stick with clicking the Next button, you should change addOnload to addOnReady (the timing of Qualtrics changed a while back and the NextButton won't be found using addOnload). I also recommend moving away from prototype.js so use one of these instead:
> ```
> this.clickNextButton();
> ```
> or
> ```
> jQuery("#NextButton").click();
> ```
Thanks Tom for the upgraded info.
The question remains however of how to create these "hidden" questions only bots can see?
Just auto-punching next and putting "preview" display logic won't work

https://www.qualtrics.com/community/discussion/1623/deleted
I think you want to use JavaScript and not CSS (since bots may be smart enough to determine is something is hidden via CSS), and you want to hide the entire question (and the separator before it). So use the JavaScript below for any question you don't want real respondents to answer, but you want bots to answer.
Qualtrics.SurveyEngine.addOnload(function() {
jQuery("#"+this.questionId).prev('.Separator').hide();
jQuery("#"+this.questionId).hide();
});
Make sure you don't force response on any of these questions. Ideally, you'll put them in their own block. Then in the survey flow immediately following the block, terminate (and probably screen out) any respondents who answered the questions.
https://community.qualtrics.com/XMcommunity/discussion/comment/17989#Comment_17989Thanks! This answered a question I had today. Lovely and thanks for this!
No I did not. Could have been me not doing it right though. :)
Apparently @TomG discussed this elsewhere - https://www.qualtrics.com/community/discussion/1623/deleted I think you want to use JavaScript and not CSS (since bots may be smart enough to determine is something is hidden via CSS), and you want to hide the entire question (and the separator before it). So use the JavaScript below for any question you don't want real respondents to answer, but you want bots to answer. Qualtrics.SurveyEngine.addOnload(function() { jQuery("#"+this.questionId).prev('.Separator').hide(); jQuery("#"+this.questionId).hide(); }); Make sure you don't force response on any of these questions. Ideally, you'll put them in their own block. Then in the survey flow immediately following the block, terminate (and probably screen out) any respondents who answered the questions.
Do the actual question text or question type matter in terms of how effective this is? Or no, because a bot will respond to anything that’s answerable?
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.