Currently, when clicking on a section's submit button, the button widget needs to call an action that will automatically validate the current section and navigate to the next section as per the section's configuration. That next section will thus be considered as started.
But many surveys have the kind of workflow where we loop through a few sections for each household member, before actually reaching the last sections. In this case, in this the last section's preload function that needs to tell the survey to change the active section, by setting the _activeSection value to where it needs to go.
This puts the responsibilty of the section navigation to individual survey's section preload, and it also has the consequence of setting the last section as started, even if the participant was never in this section.
The section navigation in the survey should be handled by some API who should figure out what the next section is and the logs should only consider a section started if the participant actually saw the page.
Currently, when clicking on a section's
submit
button, the button widget needs to call an action that will automatically validate the current section and navigate to the next section as per the section's configuration. That next section will thus be considered as started.But many surveys have the kind of workflow where we loop through a few sections for each household member, before actually reaching the last sections. In this case, in this the last section's preload function that needs to tell the survey to change the active section, by setting the
_activeSection
value to where it needs to go.This puts the responsibilty of the section navigation to individual survey's section preload, and it also has the consequence of setting the last section as started, even if the participant was never in this section.
The section navigation in the survey should be handled by some API who should figure out what the next section is and the logs should only consider a section started if the participant actually saw the page.