feat: disabling submit another response button (MRF) #7186
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
The
Submit Another Response
button should be disabled for MRF forms' 2nd respondent onwards because the link used by the 2nd respondent onwards is meant to be a one-time link, and should not be re-accessed anymore. Hence, users who are 2nd respondents onwards should not be able to submit another response (and hence should not be accessing that link anymore after submitting).This can be allowed for 1st respondents since the link is a public URL and is mean to be accessed by anyone with the link (use case: many applicants can access the link to submit an application, but backend, the approver should be approving the unique applications one by one)
To note: look into editing approvals in applications in the future?
Closes FRM-1694
Solution
The user should not be able to see the
Submit another response
button after submitting the form if they are Respondent 2 onwards so that it is clear that the process is meant for the respondents to only access the form once if they are not the first respondent.Breaking Changes
Before & After Screenshots
BEFORE:
AFTER:
Manual Tests
Check MRF forms
Add Workflow
Submit another response
button should be visible in the Thank you pageSubmit another response
button should be hidden/ not visible in the Thank you pageCheck non-MRF forms
Submit another response
button should be visible in the Thank you page