Mobile site 1.0 - Return user to correct question after using "Exit" button (Support #3444)
Description
For now if I use the "Exit" button, and then I go back to the same survey I start the survey from the start and not from the last question that I was when I used the "Exit" button.
Hot to see it:
1. Go to: http://m.scout.co.il/index.php?web&db=Only_Media&lng=3
2. Answer the first question and see the movie in the second question.
3. While on the third question (question text = "Image question") press the "Exit" button.
4. See the "Exit" message that is "You have not completed the questionnaire, you can go back and fill in the future."
5. Go back to: http://m.scout.co.il/index.php?web&db=Only_Media&lng=3
and see that after you press the "To Survey" button you are moved to the first question and not to the third question
as I understand web.scout needs to "remember" on which question the user was and with that the API will send mobile.scout the correct question.
Please check the data that you get from mobile.scout in this case and see what is missing in order to make this action
History
Updated by Eugene Nechaev almost 2 years ago
according to clause 9 of document SABI_API when press Exit button system must send to API specific command.
I do not see it in code. This is part of API description:
9. Exit from Survey
Request
Link: /survey_engine/se_sabi.php
Parameters:
sabi_ac=next
sabi_sid=SESSION_ID
sabi_id=UNIQUE_REQUEST_ID
currentIndex=999999
Response:
{"id":UNIQUE_REQUEST_ID,"result":{"code":ERROR_CODE,"uid":RESPONDENT_ID}}
Example:
{"id":"51","result":{"code":8011,"uid":1}}
- Assignee changed from Eugene Nechaev to Nadav Avidan
- Status changed from Assigned to Feedback
Updated by Nadav Avidan almost 2 years ago
- Status changed from Feedback to Resolved
Updated by Nadav Avidan almost 2 years ago
- Assignee changed from Nadav Avidan to Shlomi Lanton
Updated by Idan Geva almost 2 years ago
To me it looks like it’s fixed, but I think now there’s a new problem caused by the fix. use the same link for the multi slider tables and try to exit on the 2nd question. what happens is an empty "question page" (like when the API returns a false response).
http://m.scout.co.il/index.php?web&db=multi_slider_table&lng=3
- Assignee changed from Shlomi Lanton to Nadav Avidan
- Status changed from Resolved to Feedback
Updated by Nadav Avidan almost 2 years ago
This is the same as 3387. still don’t know how to solve it.
Updated by Idan Geva almost 2 years ago
- Priority changed from Normal to Low
Updated by Nadav Avidan over 1 year ago
For now, I uploaded the fix only to web.scout
brought back the back button.
Should work.
- Assignee changed from Nadav Avidan to Shlomi Lanton
- Status changed from Feedback to Resolved
Updated by Shlomi Lanton over 1 year ago
Look’s OK, Please update ipanel.scout as well.
BUT note that for now this code section needs to be in comment, so it will not be added to there site, because they don’t need this option for now.
After you update let us (me or Idan) know where is the commented section so we will be able to un-comment it when needed.
- Assignee changed from Shlomi Lanton to Nadav Avidan
- Status changed from Resolved to Feedback
Updated by Nadav Avidan over 1 year ago
Done. there is a TODO comment you can find easily in question.inc.php
- Assignee changed from Nadav Avidan to Idan Geva
Updated by Shlomi Lanton over 1 year ago
- Status changed from Feedback to Closed