Question T11570
Visible to All Users

On which question the browser tab is closed

created 2 years ago

Hi team
we have a survey and we would like to know on which question the browser tab was closed

for example

we have question called "which are your favourite vacation spots ??" , and the user decides to answer later and closes the browser tab

so we would want to send that question title to API as

{
"BrowserTabClosedQuestion " : which are your favourite vacation spots ??
}

could you please help us with this issue

Thanks

Comments (1)

    Hello Ravikiran,
    The basic solution for this task is to save intermediate survey results and continue filling in the survey from the last visited page. If so, you can consider enabling the sendResultOnPageNext option. Now, you can handle the survey.onPartialSend event and save intermediate survey results. You can also save a survey page number to continue filling in the questionnaire. Please refer to the Patient Medical History demo which demonstrates this usage scenario.

    Alternatively, you may consider to subscribe to the browser tab closing event and save the last answered question name. For this, subscribe to the survey.onValueChanged event and save the name of last answered question.

    Please let me know if either option suits you.