Skip to content

Highlighting keywords in question text

Ryan edited this page Aug 2, 2018 · 1 revision

How to highlight specific words in survey question text.

TLDR

add any of the following HTML to question text (be sure to close the tag as well ie. making a word underlined would be done by writing <u>some text</u>)

<b> - Bold text
<strong> - Important text
<i> - Italic text
<em> - Emphasized text
<mark> - Marked text
<small> - Small text
<del> - Deleted text
<ins> - Inserted text
<sub> - Subscript text
<sup> - Superscript text

Longer Version

Suppose a survey question looks like this:

How acceptable is the air movement in the room?

And we would like to highlight the word air movement such that it is bold like this:

How acceptable is the air movement in the room?

First, find the question in kiosk.question. Second, edit the question_text field to use the desired HTML tags.

Note: Any tags that make text bold will appear to have to effect because the question text is displayed as an h2 element (everything is already bold). Things that will be noticeable will be underlines, italics, and a few of the others. For our purposes, underline should be good enough and is plenty noticeable.