Skip to main content

Your privacy settings

We use cookies to help you with journey planning and relevant disruptions, remember your login and show you content you might be interested in. If you’re happy with the use of cookies by West Midlands Combined Authority and our selected partners, click ‘Accept all cookies’. Or click ‘Manage cookies’ to learn more.

Manage Cookies
Beta

This is a new service - your feedback will help us to improve it.

Components

Question

About

What does it do?

  • Asks the user a question about information the service needs.

When to use it?

  • When you are asking users for information as part of a service.

When not to use it?

  • When it's not part of a service.
  • When there are multiple questions on the same page, unless you have user research that says it makes sense to group the question?

How it works?

  • Always test questions with users through user research
  • Make sure your question makes sense
  • Sometimes it makes sense to group a few questions on the same page
  • Make sure users know why you're asking the question and only ask users for information you really need
  • Add (optional) to the end of each question that is optional

How would you...?


HTML markup
<h2 class="wmnds-fe-question">
  How would you...?
</h2>

Nunjucks markup
{% from "wmnds/components/form-elements/question/_question.njk" import wmndsQuestion %}

{{
   wmndsQuestion({
      contentText: "How would you..."
   })
}}

Nunjucks properties
NameTypeDescription
contentTextstringRequired. Text to use within the question.