Monday, January 13, 2020
1 change · master
Enhancements to existing features
Surveys now move between the start screen, questions, and completion screen without reloading the page, creating a smoother experience for respondents. The update also improves answer saving when time runs out, starts timers only after the survey begins, and prevents duplicate submissions after completion.
Original PR description
Purpose ======= To have a better UX, the transition between questions in a survey should not be done by loading another page, but by loading next questions in AJAX. Specifications =========== Do the…
Purpose ======= To have a better UX, the transition between questions in a survey should not be done by loading another page, but by loading next questions in AJAX. Specifications =========== Do the transition in ajax, no more page loading: - During submit, load and display next questions in a smooth transition (fade in / fade out). - Include start and end screen of the survey inside the survey form (same process, load next screen in smooth transition) - Integrate timer and start only after start survey. - Integrate breadcrumb and handle manually (at frontend) transition about clickable / active / inactive breadcrumb item. Make the survey breadcrumb a widget to ease the navigation transitions and updates. - Validate questions at frontend before sending data for submit. (to avoid fading out then fading in the same questions with error messages) Also include some improvements and fixes : - Save questions on time limit reached, to take into account unsubmitted answer (if user does not have time to click on submit) - Block submit if survey has been already completed by the user. - Do not use previous id on one page mode (fix) - Remove display mode for simple choice question : that will prepare the next redesign of survey and allow to handle simple choice in a more standard way for all kind of question types. See sub commit for more detail. Task ID : 2152223