Skip to main content

Building and editing

Learn how to start building your first form.

Your form’s name and URL
Starting pages
Adding pages
Moving pages
Editing pages
Deleting pages
Choosing the type of page
Choosing which question format to use
Asking users to submit a file
Making a question optional
Formatting content with markdown

Your form’s name and URL

When you create a new form, you need to give it a name.

This name is:

  • what your form will be listed as in the MoJ Forms editor
  • the title that will appear on your form to users
  • used in your form’s URL - for example, a name of Apply for a dog licence will produce a form URL of

The title can contain lowercase and uppercase letters, hypens and apostrophes. No other special characters are allowed.

You can change the name of your form later in the settings.

Back to top

The starting pages

When you create a new form, you are given some default pages to help you structure your form:

  • start page
  • check answers page
  • confirmation page
A new form is created with a start page, check answers page and confirmation page.

The start page is your form’s home page and cannot be deleted. To find out more about what should go on your start page, read the Design System guidance.

All your form’s question pages should come after the start page and before the check answers page.

For your form to successfully submit the user data it collects, it must have the check answers and confirmation pages. If there is nothing to submit, these pages can be deleted. For example, you could create a form to help users understand a complicated topic, such as Check when to disclose cautions or convictions.

A form can only have one check answers page and one confirmation page.

Back to top

Adding pages

You can add pages to your form using the connection menu (+) that sits on each arrow.

The connection menu allows you to insert a range of new pages between existing pages.

This menu enables you to select a new page from the range of available templates. See Choosing the type of page for details.

When you add a new page, you need to give it a name. This will be the page’s URL slug so should be in lower case with no spaces or special characters. Separate words with hyphens. For example, in the following URL, the page name is ‘your-details’:

Some names are reserved for global pages and you won’t be able to use them:

  • metrics
  • ping
  • health
  • accessibility
  • cookies
  • privacy
  • maintenance
  • reserved
  • dashboard
  • admin

It is not currently possible to change the name of a page once you have created it.

Back to top

Moving pages

To move a page:

  • hover over the page thumbnail to reveal the page menu (3 dots in a circle) and select ‘move page’
  • in the modal that appears, select another page from the drop-down list - your page will be moved to directly after this selected page

You can move most pages in this way, including pages that have become unconnected. Branching points, check answers and confirmation pages can’t be moved. In these cases, the move page option is not shown in the menu.

Back to top

Editing pages

You can open a page to edit in 2 ways:

  • clicking directly on the page thumbnail
  • hovering over the page thumbnail to reveal the page menu (3 dots in a circle) and selecting ‘edit page’

Most text on a page can be edited. Just click on the text you want to change and start typing.

Some fields are required, like the page title, and others are optional. If a text area says it is optional, you don’t have to delete it. The default text that appears in square brackets will be hidden in preview mode and when published.

Most text areas are set to a specific format, such as headings and hints. Text in content areas can be formatted using markdown.

Some text areas cannot be edited at the moment, including the buttons.

Back to top

Deleting pages

You can delete a page from the form flow view by hovering over the page thumbnail to reveal the page menu (3 dots in a circle) and selecting ‘delete page’. This cannot be undone.

If you want to remove a page from your form without deleting it, you can move it to the unconnected pages section using the ‘change next page’ option.

Back to top

Choosing the type of page

When adding pages, you can choose from the following templates:

  • Single question page - as the name suggests, this template allows one question per page. You can choose from several question types:
    • text
    • text area
    • email address
    • number
    • date
    • radio buttons
    • checkboxes
    • file upload
  • Multiple question page - this template allows you to add several question components to a single page. You can use any of the question types available on a single question page except file upload.
  • Check answers page - use this page to let users check the information they have provided. If your form requires users to submit any information, it will need a check answers page.
  • Confirmation page - use this page after a check answers page to let users know their data has been sent.
  • Content page - use this page to provide users with information without asking any questions, such as advice about the application process or the task they are trying to accomplish. You can format the content using markdown - a simple way of indicating things like headings, links and tables using text symbols.
  • Exit page - use this page as the final page of a flow that doesn’t require the user to submit any information. For example, you could tell a user that they are not eligible to continue based on some qualifying questions. As with content pages, you can format the content using markdown. Inserting an exit page will break the flow to any following pages and move them to the unconnected pages section.

Back to top

Choosing which question format to use

You can use the following question types on single and multiple question pages:

The file upload question type can be used only on a single question page.

We will be adding more question types as well as including options for validation and formatting in future updates.

Back to top

Asking users to submit a file

The file upload question type allows you to ask users to attach a file to their form. It supports the following file formats up to 7MB in size:

  • portable document format (.pdf)
  • comma-separated values (.csv)
  • images (.jpg, .jpeg, .png)
  • MS Excel (.xls, xlsx)
  • MS Word (.doc, .docx)
  • Open Office (.odt, .ods)
  • plain text (.txt)
  • rich text (.rtf)

The component allows users to upload only one file per page. To collect additional files, you will need to add extra file upload pages.

Back to top

Making a question optional

All questions are required by default but you can switch this setting off to make a question optional. This can be done with both single question pages and individual questions on multi-question pages.

To make a question optional, first click in the question title as if you are going to edit it. This highlights the component settings button (3 dots in a circle). Clicking on the button will open the menu.

The option to make a question optional is in the component settings menu.

For now, there is only one setting, called ‘Required’. Click on this setting to open the options, where you can set it to either ‘yes’ (required) or ‘no’.

MoJ Forms automatically adds ‘(optional)’ onto the end of the title of any question that isn’t required.

Back to top

Formatting content with markdown

In most cases, you won’t have to worry about formatting. The page templates include fields for headings, labels and hint text and all you have to do is add your own words.

Content areas allow you to use markdown to add your own formatting. These are on every content page and can be added to some other page templates as required.

Markdown is a way of adding formatting to plain text using basic symbols and patterns. With markdown, you can add headings, links, lists, tables and more. For example, to create a bulleted list, you start each item with an asterisk (*). Here is a selection of the most common markdown elements:

Formatting Markdown Example
Headings Put 2, 3 or 4 hashtags at the beginning of your header, depending on the level of heading you need. ## Level 2 heading
### Level 3 heading
#### Level 4 heading
Bold Put the words you want to make bold inside double asterisks. make **these words** bold
Italic Put the words you want in italics inside single asterisks. make *these words* italic
Bullets Put an asterisk (or a hyphen) at the start of each item in your list and leave blank lines at the beginning and end of the list. Bulleted lists look like this:
* list item 1
* list item 2
* list item 3
Numbering Put a number with a full stop and space at the start of each item and leave blank lines at the beginning and end of the list. Numbered lists look like this:
1. list item 1
2. list item 2
3. list item 3
Web links Put the link text in square brackets followed immediately by the link url in round brackets. [link to GOV.UK](
Email links Put ‘less than’ and ‘greater than’ signs around the email address. <>
Tables Use dividers (or ‘pipes’) to split your content into columns and start each row on a new line. Make sure each row has the same number of columns. Put hyphens in the second row to make the first row a header row. Leave blank lines at the beginning and end of the table.
(Tables do not currently display in the correct GOV.UK style.)
2 columns:
| Header 1 | Header 2 |
| -------- | -------- |
| Cell | Cell |
| Cell | Cell |
3 columns:
| Header 1 | Header 2 | Header 3 |
| -------- | -------- | -------- |
| Cell | Cell | Cell |
| Cell | Cell | Cell |

For the full range of markdown options available, see this markdown guide.

Back to top