How to return to Table of Contents after every Block | XM Community
Question

How to return to Table of Contents after every Block

  • 23 July 2019
  • 4 replies
  • 50 views

Hello Community,

In my current survey, I want to people who do the survey to return to the Table of Contents page after every block, so that they are able to see which blocks are already "ticked off". To realise this, I added the custom JavaScript on a question in the last page of every block like that:

jQuery("#NextButton").unbind("click");
jQuery("#NextButton").click(function() {jQuery("#JumpButton").click() });

Which I found here:
https://www.qualtrics.com/community/discussion/4271/return-to-table-of-contents-after-each-block-in-the-table

The issue with this fix is, that the block is not marked as "done". So the block is not "ticked off" with a green symbol in the TOC page and it remains " to be done".

Do you now how to do both in parallel: Jump back to the ToC Page and tick the current block as "done"? I tried to give the button an additional event handler, but it is getting ignored...

Any tricks or tips? Or ideas? I really appreciate any help from you guys :-)

Cheers,
Janis

4 replies

Anybody find an answer to this? I'm having the same issue

Userlevel 7
Badge +27

https://www.qualtrics.com/community/discussion/comment/28028#Comment_28028Read the ENTIRE post cited. Ignore the accepted answer.

Hi Tom. I did look over your answer and since it is pretty involved I was wondering if there might be a more exact java script that could set the block as completed when the Jump Button was clicked. I've seen scripts that call out the blocks by survey flow ID but I am not sure of how to find the function or variable that would set them to completed.

Userlevel 7
Badge +27

https://www.qualtrics.com/community/discussion/comment/28035#Comment_28035There is no way to set a block or question complete using JavaScript.

Leave a Reply