Repository navigation
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
A regression test is needed to verify that enabling save and return in a draft does not trigger the saved-progress warning until the draft is published.
1 open issue
What changed in this PR
Adds guidance for form creators about how archiving or publishing changes affects people who have saved their progress.
Changes:
- Checks the published form’s save-and-return setting to select the appropriate warning.
- Adds warnings explaining that saved versions can still receive submissions for up to 30 days.
- Adds model and view coverage for the new behavior.
| File | Description |
|---|---|
spec/views/forms/make_live/make_your_changes_live.html.erb_spec.rb |
Tests publishing warnings for saved progress. |
spec/views/forms/archive_form/archive.html.erb_spec.rb |
Tests archive guidance for saved progress. |
spec/models/form_spec.rb |
Tests the live save-and-return predicate. |
config/locales/en.yml |
Adds warning text and fixes a paragraph closing tag. |
app/views/forms/make_live/make_your_changes_live.html.erb |
Selects publishing warnings based on the live setting. |
app/views/forms/archive_form/archive.html.erb |
Selects archive guidance based on the live setting. |
app/models/form.rb |
Adds a predicate reading the published save-and-return setting. |
Review effort: Balanced
623a4d0 to
a1cdab0
Compare
There was a problem hiding this comment.
🟡 Changes recommended
The unordered document lookup can use an older live version’s save-and-return setting, causing incorrect confirmation warnings when settings differ across versions.
1 open issue
1 resolved since last review
Review effort: Balanced
a1cdab0 to
5b4b268
Compare
5b4b268 to
feca253
Compare
When a live form has save and return enabled, people who have saved their progress keep filling in the version they started, so form creators may get submissions from the previous version for up to 30 days. Show this on the make your changes live page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When a live form has save and return enabled, people who have saved their progress can still finish and submit it after the form is archived, so form creators may get submissions for up to 30 days afterwards. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
feca253 to
b6272f5
Compare
| <% if current_form.live_save_and_return_enabled? %> | ||
| <%= t("make_changes_live.warning_with_save_and_return_html") %> |
|
🎉 A review copy of this PR has been deployed! You can reach it at: https://pr-3279.admin.review.forms.service.gov.uk/ It may take 5 minutes or so for the application to be fully deployed and working. If it still isn't ready For the sign in details and more information, see the review apps wiki page. |

What problem does this pull request solve?
Trello card: https://trello.com/c/wmQXsibH/3337-tell-form-creators-about-archiving-or-making-changes-to-forms-with-save-and-return-enabled
These changes affect live forms with save and return enabled. If you try to make changes or archive a form, the content will vary depending on whether the form's live version has save and return turned on.
Archiving a form with save and return enabled
Make changes to a live form with save and return enabled
Things to consider when reviewing