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
Name | Type | Description |
---|---|---|
contentText | string | Required. Text to use within the question. |