On the last page of the block, I want the button to show, so participants can move on to the next block. I didn't add any javascript to that last question. For some reason, the button doesn't show. (If I add an additional question after that, the button doesn't show either.) Does anyone understand what could be the problem or what javascript I could use to show the button? Or any alternative to move on to the next block? I don't want to use a timer because that would require a page break where I don't want one.
Thanks in advance!
Let me elaborate. I hid the next button on a number of questions in the same block (except the first few and the last one) because I want the next question to always show automatically when participants give an answer. I'm using display logic to have the next question appear when a response is given. In the display logic, I checked "in page" to have the next question appear on the same page. When I either add a page break or uncheck "in page" in the display logic, the display logic doesn't seem to work and I can't advance to the last question.
I have a similar question. I've hidden the Next button on a page using the javascript: $('NextButton').hide();
I want the Next button to appear only when the user clicks on a different button that I've created. That button displays text information when clicked. Here's my script, when runs when the page is fully displayed:
JS:
jQuery("#button1").click(function() {
jQuery("#infodiv1").toggle();
});
HTML:
What additional code do I need to add to make the Next button appear when they click button1?
Thank you!
unipsychologist I believe you just need to add a question API call in your JS. When the user clicks your Button1 and the JavaScript fires, you want to include the method
this.showNextButton ()
Right after your .toggle() command.
Source: https://api.qualtrics.com/api-reference/ZG9jOjIwMTY2NzUy-javascript-question-api
https://community.qualtrics.com/XMcommunity/discussion/comment/42703#Comment_42703Thank you! I eventually got it working with this command: $('NextButton').toggle();
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.