Bigred01 wrote: To trigger the next button, try this.
Code:
$(document).ready(function() {
$('input').on('keydown keypress', function(e) {
if(e.keyCode === 13) {
e.preventDefault();
$('#movenextbtn').click();
}
});
});
Hello! I am working with 3.17.9 + 190731 and with the Bootswatch theme.
The code above works great for me. I copied this in "Files.js" of advanced options.
But I have a problem with the numerical questions when the following questions (also numerical) have to be hidden / shown according to conditional fork. More precisely, with some numbers when I press "enter" it goes right to the immediate next question. But for the options that I need to "skip" two or more questions these are actually "hidden" and the correct question appears below but the cursor remains on the initial question. One fact: if "tab" is pressed, the cursor effectively points to the desired question.
Is it as if the code above would be useful for "movenextbtn" and maybe when there are jumps, another command must be added?
First, I thought the problem was my misuse of the configuration condition, but the logical file shows no problem.
In the example that I attach if you put a number other than 1 in the first question and press "enter" you should skip to the last question. The other questions are effectively hidden but the cursor only jumps with the "Tab" key.
Thanks in advance,
Diego