The explain
decorator can be applied to question options, table columns, and table rows to add an "info" icon that displays a tooltip to respondents when hovered over with their cursor. This decorator is useful for providing additional information without taking up valuable screen space.
Tip! To instead display tooltips at the question level, or with a set text
widget, use the explain
tag.
Details
- The
explain
decorator can be included after option text for either lists defined within a question or table widget or with options in standalone setlists. - The
explain
decorator can be used like option data and be piped into atext
decorator with the[explain]
placeholder (e.g.,{text: [explain]}
. - The
showexplain
,showexplaincol
, andshowexplainrow
tags can be applied to turn off the display of explains for options, columns, and rows, respectively.
Tags
Tag | Description |
showexplain |
Set to 'n' to to disable explain for all options in a question or table. |
showexplaincol |
Set to 'n' to to disable explain for all columns in a table. |
showexplainrow |
Set to 'n' to to disable explain for all rows in a table. |
Additional examples
Deactivating explain text on follow up questions
When explain tooltips are applied to lists that are used for multiple questions, the tooltips may not be needed in follow up questions.
In the example below, the lists used for Q3 and Q3A both use explain
decorators to describe pizza styles and local pizzerias. Since these lists are reused for the options and rows in T3B, the tooltips are no longer needed and can be deactivated with showexplain: n
and showexplainrow: n
, respectively.
Using explain text in a 'text' decorator
The [explain]
placeholder can be included within a text
decorator to reference the explain text outside of a tooltip. In the example below, adding {text: [text]: [explain]}
to the rowsfrom
listcall modifies how the row text is displayed. Each row will instead be displayed as "row text: explain text" — e.g., Apple: Round fruit.
Since the info icons/tooltips are now redundant in this scenario, we include showexplainrow: n
to hide the table rows' tooltips.
Comments
0 comments
Please sign in to leave a comment.