Skip to content

Commit 545f47d

Browse files
committed
Update what happens next page for copy of answers
If the feature flag is enabled, tell users that answers will be included in the confirmaiton email if they have enabled it and the user opts to receive them.
1 parent b1db050 commit 545f47d

3 files changed

Lines changed: 20 additions & 5 deletions

File tree

app/views/forms/what_happens_next/new.html.erb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@
2424

2525
<%= t("what_happens_next.how_this_content_is_used_html") %>
2626

27+
<% if FeatureService.enabled?(:send_filler_answers) %>
28+
<p><%= t("what_happens_next.confirmation_email_send_filler_answers_enabled") %></p>
29+
<% else %>
30+
<p><%= t("what_happens_next.confirmation_email") %></p>
31+
<% end %>
32+
2733
<%= govuk_inset_text do %>
2834
<%= t("what_happens_next.reference_numbers") %>
2935
<% end %>

config/locales/en.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2190,6 +2190,8 @@ en:
21902190
name: Super admin
21912191
save: Save
21922192
what_happens_next:
2193+
confirmation_email: The optional email confirmation will also include the contact details you provide for the form, and the date and time of submission. It will not include a copy of their answers.
2194+
confirmation_email_send_filler_answers_enabled: The optional email confirmation will also include the contact details you provide for the form, and the date and time of submission. If you’ve given people the option to ask for a copy of their answers - and the person filling in the form requests this - their answers will be added to the confirmation email.
21932195
example:
21942196
body: We’ll send you an email to let you know the outcome. You’ll usually get a response within 10 working days.
21952197
heading: Example
@@ -2201,10 +2203,5 @@ en:
22012203
<li>shown to people when they’ve completed and submitted a form</li>
22022204
<li>included in an email confirmation, if they choose to receive this</li>
22032205
</ul>
2204-
2205-
<p>
2206-
The optional email confirmation will also include the contact details you provide for the form,
2207-
and the date and time of submission. It will not include a copy of their answers.
2208-
</p>
22092206
instructions: Add some information to tell people what will happen after they’ve submitted their form, and when - so they know what to expect.
22102207
reference_numbers: GOV.UK Forms adds a unique reference number to the confirmation page and optional email confirmation. This will also be included in submission emails sent to your processing email address.

spec/views/forms/what_happens_next/new.html.erb_spec.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,16 @@
2727
it "contains text about reference numbers" do
2828
expect(rendered).to have_text(I18n.t("what_happens_next.reference_numbers"))
2929
end
30+
31+
context "when send_filler_answers feature flag is enabled", :feature_send_filler_answers do
32+
it "has content saying that answers might be included in the confirmation email" do
33+
expect(rendered).to have_text(I18n.t("what_happens_next.confirmation_email_send_filler_answers_enabled"))
34+
end
35+
end
36+
37+
context "when send_filler_answers feature flag is disabled", feature_send_filler_answers: false do
38+
it "has content saying answers will not be included in the confirmation email" do
39+
expect(rendered).to have_text(I18n.t("what_happens_next.confirmation_email"))
40+
end
41+
end
3042
end

0 commit comments

Comments
 (0)