3. Editing the results

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 result that you want the user to see. 

You can use:

  • Flat content - for example headings, paragraphs, links, bullet points

  • Embedded entries - for example callouts, targeted content, location specific content, tables

  • Content patterns

Add a tag to every entry

Make sure you add a tag to every entry, including embedded entries. Contentful won’t let you publish an entry without a tag.

If you’re embedding an entry that’s already in use somewhere else on the website, you won’t get a validation error message to remind you to add a tag. You still need to add the decision tree tag to these entries.

Add or edit a result

Click ‘Add content’.

Under new content, click ‘Decision tree - results’ to finish the branch.

Adding a new result in the next steps field on a decision tree question.

Tags

Navigate to the tags tab.

Editor, References and Tags tabs. Tags is annotated with a blue rectangle.

Use the dropdown menu to select the tag for your decision tree.

A search box titled Tags. You can search and select the tag for your decision tree.

Click outside of the dropdown menu to close it.

The tag 'problem-with-a-used-car' has been selected. It's shown below the search box.

Go to the ‘Editor’ tab.

Editor, References and Tags tabs, with Editor annotated with a blue rectangle.

Name

This is the entry name to make it easier to find in Contentful. The user won't see it. Include the cab-ID number to help you find it.

You should name your entry like this: [title of content] - cab-ID number

If your result is nested after several questions, you could include some keywords from previous answers to help you see the branch.

Name field in a decision tree result. The user has typed 'Outcome K - more than 6 years - private seller' and included the cab-ID to help them find the entry.

Body

You can use the rich text editor to format the body text with headings, paragraphs, links, numbered lists and bullet lists.

Example of decision tree results body text. The user has formatted the text with paragraphs, headings and lists.

You can also embed content entries. It’s ok to use a mix of both flat content and embedded content.

Example of embedding content entries in a decision tree result. The user has embedded callouts, content patterns and location specific content.

If you embed content entries, you must also tag them with the decision tree’s tag.

Add or edit a decision tree content pattern

In the Body field, click ‘Embed’ then ‘Entry’.

Embedding a new entry in a decision tree result. The user has clicked 'embed' then 'entry' in the dropdown menu.

You can either embed:

  • a new content pattern

  • an existing content pattern

Add an existing content pattern

Search for the content pattern. You can use the content type filter to help you. Click ‘content type’ then select ‘Decision tree - content pattern’.

Filtering by decision tree content pattern. The user has clicked the content type drop down menu and selected decision tree content pattern.

Click the entry to embed it. 

Add a new content pattern

Click ‘Create new entry’ then ‘Decision tree - content pattern’.

Creating a new decision tree content pattern. The user has clicked 'create new entry' then selected 'decision tree content pattern' in the dropdown menu.

Fill in the fields for the content pattern. Some are ‘required’ - this means you must fill them in.

Tags

Navigate to the tags tab.

Editor, References and Tags tabs. Tags is annotated with a blue rectangle.

Use the dropdown menu to select the tag for your decision tree.

A search box titled Tags. You can search and select the tag for your decision tree.

Click outside of the dropdown menu to close it.

The tag 'problem-with-a-used-car' has been selected. It's shown below the search box.

Go to the ‘Editor’ tab.

Editor, References and Tags tabs, with Editor annotated with a blue rectangle.

Name

This is the entry name to make it easier to find in Contentful. The user won't see it. Include the cab-ID number to help you find it.

You should name your entry like this: [title of content] - cab-ID number

Audience

Select the countries where you want the decision tree to appear.

The audience radio buttons with the word required in brackets. England and Wales are ticked. Scotland is unticked.

Body

You can use the rich text editor to format the body text with headings, links, paragraphs, numbered lists and bullet lists.

Editing the body field in a results entry. The user has formatted text with headings, links, and lists.

Publishing

After you've finished adding a result to the end of each branch, you should move on to the next section of the guide, 4. Editing the email format.

If your decision tree doesn't use the result email function, you should move on to 5. Publishing a decision tree.

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.