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:
Go to http://localhost:3000/confirmation-page to check.
Update the content to suit this fictional service.
Link to the confirmation page from the check answers page
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:
- Open
check-your-answers.htmlin yourapp/viewsfolder. - Find the line
<form action="/form-handler" method="post" novalidate>. - Change the value of the
actionattribute from/form-handlerto/confirmation-page.
Click on the ‘Confirm and send’ button to check that it now works. It should take you the confirmation page.