enableNextButton with time measureing question | XM Community
Skip to main content
Hi all



I have a question where I disable the next button at the beginning and enable it as soon as they answered all questions generated with JavaScript. The mechanism works as long as I do not add a timing question (to measure the latency) to the block. As soon as I do that the button stays enabled from the beginning. It also did not work when I remove all the code but the line this.disableNextButton();. The Timing Question is the default without any changes.



Does anyone know how I can use "this.disableNextButton();" with a Timing Question?

Instead of this.disablenextbutton
Try using

jQuery("#NextButton").hide();


jQuery ("#NextButton").show();


> @rondev said:

> Instead of this.disablenextbutton

> Try using

> jQuery("#NextButton").hide();

>

> jQuery ("#NextButton").show();



Doesn't work either. The Button is displayed from the beginning.

Put all the code in the setTimeout function as below

setTimeout (function () {
//All code goes here
},100);


Leave a Reply