I have been creating a cued-recall task. Participants will learn word pairs and during the final test they will be presented with the first word and asked to retrieve the second.
As I go through the preview, I keep having to click in the textbox before I can type my answer.
I would like to be able to type automatically without needing to click first.
I have tried various versions of:
Qualtrics.SurveyEngine.addOnReady(function()
{
$('NextButton').hide();
if($('PreviousButton')) $('PreviousButton').hide();
var inputText = $(this.questionId).down('.InputText');
var evt = inputText.on('keydown', function(e) {
if(e.which == 13) {
evt.stop();
$('NextButton').click();
}
});
inputText.activate();
});
and
Qualtrics.SurveyEngine.addOnload(function() {
$(this.questionId).down('.InputText').focus().defer();
});
These were suggestions I had seen in other threads, but nothing seems to be working.
Thanks in advance!