I am using the "Show question index / allow jumping" = Incremental, setting for a survey. However, I am suppressing the display of the index until the respondent reaches the end of the survey.
Code:
<script type="text/javascript">
$(document).ready(function() {
$('#index').hide();
$("#index").remove();
$('.withindex').removeClass('withindex');
});
</script>
At which point I am providing a button by which the respondent can go back to the beginning of a group of questions and edit. That all works fine.
However: NOW I want to
pass the page number $('thisstep').value() of the summary back when the user clicks my custom button to edit a previously answered question group, so that after that question group has been completed I will be able to give the option to jump back to the summary rather than clicking next until the summary is reached.
The tricky part is knowing how to get the summary page number from the summary page back to the group. My thought was to pass the information in a URL link rather than using a button. Not seeing how to trigger a URL to utilize the index control instead of a button control. And if I did get a URL to work, how to pass anything in the URL.
Crazy idea?