User Story
As a user, I want to be able to edit a form so that I can modify answers if needed.
Description
The system must provide functionality for users to edit or reset individual questions within a form, and reset the entire form to its initial state.
Preconditions
- User is logged in and is on Form Details page.
- There must be a form with a status anything but "Not Started".
Main Flow 1 (reset form)
- User clicks on the kebab menu located in the upper right corner.
- The system displays a bottom sheet.
- From the bottom sheet menu, the user selects the "Clear form (delete all answers)" button.
- The system prompts the user with a confirmation modal to ensure the action.
- User clicks the "Clear form" button.
- After confirmation:
- the system displays a successful message.
- the system resets the form status to "Not Started" and all associated questions to "Not Answered".
- all notes, photos, and videos associated with the respective form are deleted
Alternative Flow (clear answer)
- The user navigates to the Questions List and selects a specific question.
- Within the question view, the user clicks on the "Clear answer" button.
- The system prompts the user with a confirmation modal
- User selects the "Clear answer" button within the modal.
- The system resets the selected question, setting its status to "Not Answered" and deleted all its media files.
Main Flow 2 (editing question)
- The user navigates to the Questions List and selects a specific question.
- Within the question view, the user modifies their answer.
- After modifying the answer, the user selects the "Save and continue" button.
- The system saves the new answer and redirects the user to the next question.
Business Rules
- The "Clear form (delete all answers)" option must be disabled for forms with a status of "Not Started".
- Clearing a form removes all associated media and resets the form status to "Not Started," with all questions set to "Not Answered."
- Clearing an individual question removes its associated media and sets the question status to "Not Answered."
Acceptance Criteria
- The confirmation modal is shown for both clearing the entire form and clearing individual answers.
Additional Information
- Figma references
- Clear Form Modal: here
- Clear Question Modal: here
User Story
As a user, I want to be able to edit a form so that I can modify answers if needed.
Description
The system must provide functionality for users to edit or reset individual questions within a form, and reset the entire form to its initial state.
Preconditions
Main Flow 1 (reset form)
- the system displays a successful message.
- the system resets the form status to "Not Started" and all associated questions to "Not Answered".
- all notes, photos, and videos associated with the respective form are deleted
Alternative Flow (clear answer)
Main Flow 2 (editing question)
Business Rules
Acceptance Criteria
Additional Information