Skip to main content
Build a basic prototype

Create a confirmation page

Create an empty file named confirmation-page.html in app/views.

Copy the Nunjucks code from the confirmation page pattern into the file.

Add this line to the top of the file:

{% extends "layout.html" %}

Go to http://localhost:3000/confirmation-page to check.

Update the content to suit this fictional service.

As before, you’ll need to link to this page from the previous page. However there is only 1 link to update as the confirmation page does not have a back link.

To link to the confirmation page:

  1. Open check-your-answers.html in your app/views folder.
  2. Find the line <form action="/form-handler" method="post" novalidate>.
  3. Change the value of the action attribute from /form-handler to /confirmation-page.

Click on the ‘Confirm and send’ button to check that it now works. It should take you the confirmation page.