对于30个Qualtrics页面,我使用下面的代码(我从here借来的)代表每页:
Qualtrics.SurveyEngine.addOnload(function()
{
$('Buttons').hide();
if(window.location.pathname.match(/^\/jfe[0-9]?\/preview/)) {
$(this.questionId).select('input').first().focus();
}
var that = this;
Event.observe(document, 'keydown', function keydownCallback(e) {
var choiceID = null;
switch (e.keyCode) {
case 74: // 'j' was pressed
choiceID = 1;
break;
case 75: // 'k' was pressed
choiceID = 2;
break;
}
if (choiceID) {
Event.stopObserving(document, 'keydown', keydownCallback);
that.setChoiceValue(choiceID, true);
$('NextButton').click();
}
});
});

据我所知,此代码已被其他用户使用。
然而问题是"下一步"按钮仅隐藏在第一页上。从第二页起,"下一页"按钮始终显示,但其余代码工作正常。
知道问题出在哪里?
最佳,