I have a workaround for this issue now. I am inserting an html tag in the startpage.pstpl, that contains attributes I want available throughout the survey. In particular the information I need about how many relatives groups I am including, how many questions I am asking about each relative, and an offset from the end of the last relative's last question, to my summary question.
<myvars>
relativequestioncount="5"
relativequestiongroups="10"
relativeoffset="3"
</myvars>
Then I inserted a question of type text that will store the page number of the first relative question, as a starting offset. Since it is before all the relative questions I can access that value via {} on all other relative questions. This question prompt contains a tag <trackpage></trackpage>, invisible to the person taking the questionnaire.
In the javascript $(document).ready(function(){}, I am watching for any pages that contain the trackpage tag, if($('trackpage').length>0){ <do some stuff> }, if that is found it triggers some javascript/jquery that populates the current element's text box with the value of the hidden page element named 'thisstep'. Then the function runs the click event of the "Next" button and the page comes and goes before the user really sees it. Still haven't made that seamless, there is a bit of a flash, especially if there is a longish survey involved.
Also I added a script to the startpage, $(document).ready(function(){}, that suppresses the display of the indexes, I really didn't like the way they were implemented.
So now when survey takers complete entry of the family history section they are presented with a set of custom buttons labeled with the description and initials of the relative that they entered history for. Clicking one of those buttons jumps control to the page where the history was entered. I pass all the variables to javascript by embedding each relevant answer from previous questions into an invisible tag on the summary page within the question text. Something like this:
Here is a list of the relatives you indicated had a cancer history:<insertlinks reltiveinfo="{rel1},{rel2},{rel3},{rel3},{rel4},{rel5},{rel6},{rel7},{rel8},{rel9},{rel10}"></insertlinks>
My javascript determines whether or not a button needs to be provided for each relative and puts them on the page as needed with an index to the page where the info was entered.
It is all rather complicated, but works beautifully. It all makes me think that life would be so much easier if I had a way to persist values from one page to the next on a survey. We have that kind of mechanism working with the token table. I just wish we had something like that related to the response table, if that makes any sense.
My thoughts are complex and hard to put into words, ya know?
Sample Survey