3. Editing the letter format

This advice applies to England. See advice for See advice for Northern Ireland, See advice for Scotland, See advice for Wales

This is where you build the letter that you want the user to see. It’s made up of plain text and embedded questions. The embedded questions will be replaced with the user’s answers when they fill in the form.

Screenshot of the letter format field within the letter template entry. It shows a button called 'Add content'.

How to build the letter

You should draft your letter in a Google doc. You can draft it with some placeholder answers. For example, if your letter is to complain about faulty goods, you might include some placeholder sentences to describe an item and why it’s faulty. 

In the letter format field click the 'Add content' button. In the drop-down menu click 'Template letter - format' under the heading 'NEW CONTENT'.

Paste your template letter into the body field of the letter format entry as plain text. 

Work through the letter body and embed the relevant question in the appropriate place. You can replace a placeholder answer by selecting it and then embedding the question on top to replace it. 

Screenshot of Contentful letter format body field. There are different formatting options including paragraph and heading styles, bold, italics, underline, hyperlink, bullet point list, numbered list, quote, horizontal rule, table, and a drop-down menu for embedding entries.

Deciding when to use an entry or an inline entry

You can either embed an ‘entry’ or an ‘inline entry’.

Screenshot of Contentful embed entries dropdown menu. There are two options: Entry, or Inline entry.

If you want the user's answer to appear in the letter on its own line, use an 'entry'. For example, their full name at the end of the letter.

Screenshot of an entry embedded in the letter body. The entry is labelled “Your full name. Reusable, don’t edit”.

If you want the user’s answer to appear within a sentence, use an 'inline entry'. For example, if their answer is a short sentence or phrase that slots into the text.

Screenshot of two entries embedded inline in a sentence. The sentence reads “I would prefer if I could repay this debt at a ‘Do you pay weekly or monthly?’ rate of £ ‘How much would you like to pay?’ and the letter ID number.

Sender's details

Every letter should start with the sender’s details. They'll appear in the top right.

The reusable section ‘Your details’ should already be in the user form. You need to embed the questions from this section into the letter.

Embed all of these reusable questions as existing entries:

  1. Your name (reusable)

  2. Your address (reusable)

  3. Your email address (reusable)

  4. Your phone number (reusable)

Recipient’s details

You need to include the contact details for the letter recipient. They'll appear in the top left.

The reusable section for the recipient details should already be in the user form. For example, ‘Creditor’s details’. You should embed the questions from this section into the letter.

You should also embed the question called “If yes, what’s their name?”. This means that the recipient’s full name appears above their address if one is entered on the user form.

For example:

Screenshot of 3 entries for the contact name, name of trader and trader's address in the body field of the letter format entry.

Today’s date

You should add the date in the top right, under the sender’s name and address. There's a reusable content entry that should be used in every letter - this is set to add the correct date each time.

Add an existing entry and using the 'Content type' filter, select the option 'Template letter - today's date' from the drop-down menu.

Screenshot of Contentful. In the pop-up window to add an existing entry, you can use the content type dropdown to select the entry for today’s date.

This is how the entry should look in the body of the letter format:

Screenshot of today’s date entry embedded in the letter body. The entry is labelled “Today’s date. Reusable, don’t edit.”

Greeting

The letter should either display ‘To whom it may concern,’ or ‘Dear [Full name],’.

You must embed 2 reusable questions to create this greeting.

Embed these reusable questions as inline existing entries:

  1. Is there a specific person you want to write to? (reusable)

  2. If yes, what’s their name? (reusable)

Don't put a space between the entries and make sure you add a comma after the question 'If yes what’s their name?'. 

For example:

Screenshot of Contentful letter format. There are two inline entries, labelled “Is there a specific person you want to write to? Reusable, don’t edit” and “If yes, what’s their name? Reusable, don’t edit”. There is a comma after the second entry.

Letter body

You can use the rich text editor to format the body text with line breaks, numbered lists and bullet lists.

If a question asks the user to describe their problem or give a longer answer like a list, you should embed it as an ‘entry’, not an ‘inline entry’.

In the body, add a colon to the end of the sentence before the entry.

Screenshot of a lead in sentence ending with a colon, then the question embedded inline. The sentence reads “I now have a problem with the goods: Describe the problem” and the letter ID number.

This means that even if users answer the question in different ways, it’ll still make sense to the recipient. It won’t matter if they start their answer with a capital letter, end it with a full stop, or write their answer on different lines or in a list.

Screenshot of two letter previews. The first letter reads “I now have a problem with the goods: The machine stops working after 15 minutes of use and it takes at least an hour to switch back on.”. The second letter reads “I now have a problem with the goods: 1. The machine stops working after 15 minutes of use. 2. It takes at least an hour to switch back on.”.

Optional content

Optional content is a way to build short pieces of content that only display if a user answers an optional question. This is useful for giving context to data that doesn’t make sense on its own.

Screenshot of Contentful optional content entry. The entry is lavelled “Account number. Optional” and the letter ID number. The body reads “Account number:” then an embedded entry labelled “Account number (Energy). Reusable, don’t edit.”.

For example, a question asks for an account number. If the user leaves it blank, the letter doesn’t show ‘Account number:’.

Screenshot of the letter preview. The letter reads “Type of supply: Dual fuel. Reference number: JH556612.”

If they answer it, the letter will display ‘Account number: [whatever the user put]’.

Screenshot of the letter preview. The letter reads “Type of supply: Dual fuel. Account number: A632145/2012. Reference number: JH556612.”

You can build more complicated optional content with more than one question embedded in it. However, the user would need to fill in every optional question for it to make sense. This means they might need to check the letter and then go back to the form to change their answers. For this reason, it’s better to keep optional content simple.

Creating new optional content

Embed as an optional content entry. 

You should name optional content like this: [title of content] - optional - [cab-ID]

Screenshot of Contentful. The dropdown menu shows how to add new optional content.

Editing existing optional content

If you need to edit optional content later, use the 3-dot menu on the entry in the letter, or click the title of the entry.

Screenshot of Contentful letter format. An optional content entry is embedded in the letter. There’s a three dot menu next to the label “published”. The entry reads “Previous complaint. Optional content” and the letter ID number.

Ending the letter 

You should end the letter with ‘Yours faithfully’ and the sender's name.

Write ‘Yours faithfully,’ in the letter body. Make sure you include the comma. Then embed the reusable content 'Your full name' as an existing entry. 

Screenshot of Contentful letter format. It reads Yours faithfully with a comma, and the entry Your full name embedded below it.

This is how it will show on the letter:

Screenshot of letter preview filled in by the user. It reads Yours faithfully with a comma, and the user’s name ‘Sam Hoolin’ below.

Letter format checklist

You can use this checklist to make sure the letter is correct:

  1. Sender’s name and contact details are embedded as 4 entries: Your full name Your address Your email address Your phone number 

  2. Recipient’s name and contact details are embedded as 3 entries: If yes, what's their name? [Company’s] name [Company’s] address

  3. Today’s date is embedded as an entry: Today’s date 

  4. Greetings are embedded inline, with a comma after: 'Are you writing to a specific person?If yes what’s their name?,'

  5. There are no grammatical or spelling errors

  6. Optional content is set up so users can tailor the letter to their situation

  7. Letter closes with 'Yours faithfully,' - including the comma. Then the sender’s name should follow as an embedded entry: Your full name

Publishing

After you've checked the letter is correct, you should publish the template letter.

Help us improve our website

Take 3 minutes to tell us if you found what you needed on our website. Your feedback will help us give millions of people the information they need.