Skip to content

Feature/survey locking system

Remco Tukker requested to merge feature/survey_locking_system into develop

Idea:

  • always open the survey in readonly mode
  • have a 'start edit' button that retrieves a lock from the backend
  • when editing have a 'save and stop editing' button that goes back to readonly mode and releases the lock
  • when closing the page while in edit mode give a 'are you sure' popup and release the lock if the page is closed (not 100% reliable but works most of the time on desktop)
  • when in readonly mode and you still have a lock, give an additional option to release the lock with a warning that you discard any changes that you may still have in other tabs/browsers
  • also allow for actually setting the response to the 'completed' state, and show the state in the title because otherwise users dont see that they completed the survey already

Known bug:

  • When using the 'back' button from the survey to a page within the same website (eg the survey management page), the hidepage handler isnt triggered and also isn't removed
Edited by Remco Tukker

Merge request reports