code to hide next button for 10 seconds and autoadvance after 10 seconds | XM Community
Skip to main content
Hi All,



Can some help me with code to hide next button for 10 seconds and autoadvance after 10 seconds
```

Qualtrics.SurveyEngine.addOnReady(function() {

this.hideNextButton();

setTimeout(function() { jQuery("#NextButton").click(); },10000);

});

```
Hi @TomG ,



Can we activate button on answer click rather than auto forwarding after 10 seconds.
> @bansalpeeyush29 said:

> Hi @TomG ,

>

> Can we activate button on answer click rather than auto forwarding after 10 seconds.

```

Qualtrics.SurveyEngine.addOnReady(function() {

this.hideNextButton();

jQuery("#"+this.questionId+" input[type=radio]").click(function {

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

});

});

```
Thanks Tom, one more question in a grid we are shading alternate rows and i also have group header which is getting shaded too can we change this and how?



`tr.ChoiceRow{

background-color:#F0F0F0;

}

tr.ChoiceRow.ReadableAlt{

background-color:white;

}`
> @bansalpeeyush29 said:

> Thanks Tom, one more question in a grid we are shading alternate rows and i also have group header which is getting shaded too can we change this and how?

>

> `tr.ChoiceRow{

> background-color:#F0F0F0;

> }

> tr.ChoiceRow.ReadableAlt{

> background-color:white;

> }`



You can assign group labels their own style which will override the row style. For example:

`th.Group { background-color:#333;color:white;font-weight:bold; }`

Leave a Reply