Skip to content

add optional reason query parameter to submission edit route

Brian Kockritz requested to merge submission-edit-reason-query-param into master

Links to relevant issues

Description of changes, providing context that may help others understand the changes

Dan requested a way to not require a user to have to enter the submission edit / archive reason when arriving at the submission edit route via link (as introduced by #305 (closed)). This MR adds an optional reason query parameter to the /surveys/:surveyId/submissions/:submissionId/edit route, that when present and contains a valid reason, will set the archivedReason on the submission automatically, and skip prompting the user for the reason.

Edited by Brian Kockritz

Merge request reports