Using tooltips
Tooltips can be used to provide definitions of complex or technical words
Last updated
Tooltips can be used to provide definitions of complex or technical words
Last updated
It is best practice to use Tooltips sparingly and keep the descriptions short so they render well on smaller devices such as tablets and phones
The first step is to provide definitions of any complex words in the form 'Glossary'
The 'Glossary' is visible in the left hand column in the form definition menu
Select 'add new term' and give the term a unique name
The glossary term name must be unique, in small characters and no spaces
Once you have defined a word in the form glossary you can add a Tooltip in the form itself.
Tooltips can be located in various places in a form including in a section title, a question label or a question option.
Tooltips must be written in the following way:
<pwi-form-tooltip
Opening parenthesis
term=participate
Refers to the term name as defined in the form glossary. In this example the term name is 'participate'
position=top
Indicates where the tooltip should appear. If not mentioned, the app will automatically determine the positioning
>participate<
The word in the form which is having a tooltip attached to it
/pwi-form-tooltip>
Closing parenthesis
Once you have added your Tooltip you can go to the 'Test' mode to test how it is working.
It is possible to change the positioning of the Tooltip. In the example above we set the position as 'top'. However 'bottom', 'left' and 'right' are also possible options.
If a position is not mentioned, the app will determine the position automatically.
Tooltip's can be added to option labels as shown below:
To add s Tooltip to an options label you must toggle on the 'Advanced' mode and select the option 'allow options to be written in markdown' as shown below:
Congratulations! You now know how to add Tooltip to explain words that are difficult to understand