IntelliSurvey's Survey Programming Language (SPL) offers multiple ways to input and display text in surveys. You can use freetext, the text
tag, or create a text widget.
The examples below illustrate three equivalent methods for displaying text:
This is freetext used to display survey content right here on the spot. text: This is a text tag used to display survey content right here on the spot. show text: MYTEXT text: This is a show text widget used to display survey content right here on the spot.
Tip! If your plain text resembles programming syntax, such as '1. Step 1,' use a text
tag or a text widget to ensure it passes the parser correctly.
Freetext
Freetext is plain text or HTML that is entered directly into the body of a survey without using tags or widgets.
Thank you for participating in this survey!
<i>Thank you for participating in this survey!</i>
When using freetext, there is no automatic page break before the content, no assigned ID, and it does not have a description in IntelliBuilder.
'text' tag
The text
tag can be placed independently in the survey code. The text
tag supports both plain text and HTML as the input.
text: Thank you for participating in this survey!
text: <b>Thank you for participating in this survey!</b>
Like freetext, there is no automatic page break before the content, no assigned ID, and it does not have a description in IntelliBuilder.
Additional tags
To create and display text content independently, you can use one of three tags:
html
, markdown
, and text
.
Tag | Description |
html
|
Inserts the content into the survey page's HTML as-is, without a |
markdown |
Allows the use of Markdown syntax in the content. |
text
|
Defines lines of text. HTML is also supported to customize content. |
'show text' widget
The text
tag can also be attached to the show text
widget, which is more versatile for programming and reporting.
show text: SWFAN
text: May the Force be with you. Always.
showif: anyChecked($QX,1)
When using show text
, a descriptive ID is assigned and displayed in IntelliBuilder. This widget also supports additional tags like showif
and explain
.
Tips! For more on using text widgets, including how to insert a text multiple times in a survey, see Text widgets. If you are looking for a way to display text based on the respondent's previous answers or survey logic, see Conditioned text widgets.
Comments
0 comments
Please sign in to leave a comment.