Using Question styles

 

When a question is created, the first choice to make is which style it should use, using the "Select a question style" dropdown. As different choices are selected in the menu, a short description of each question style appears under it:

Select a question style:

Check for valid email address
Explain

Note the Explain link under the menu. This link opens a popup window with complete details on how to use the Question Style selected. The explanations are more complete than those given here. Open the menu, scroll down to the style you're interested in, and click on Explain.

The Standard style is used for radio buttons, text fields, and other form elements. Other styles are used to:
- provide the respondent with an automatically resizing Text Area with ElasticText
- perform calculations using fields in the browser with Calculate
- revealing and hiding questions dynamically with DisplayOrHide
- create Likert and Semantic Differential scales with Matrix and MatrixSD
- validate response field contents using JavaScript: Date, Number, Email
- define multiple column layouts with ColumnBegin, ColumnBreak, ColumnEnd
- upload Attachments with a questionnaire using Upload
- insert text and HTML into univariate reports using ReportText

Elastic Text is used with Text Area fields, such as Comments. The created form field is rendered small, and as the respondent enters text, it becomes as tall as necessary. This keeps questionnaires compact yet allows a large amount of text to be entered.

Calculate is used with one line text questions, often using the style Number. Example:

average_income/$.2~ = ( income_1 + income_2 ) / 2 ;

This will display as $1,234.00
See Calculation for a complete explanation.

The Matrix style allows creating a Likert scale question matrix like this:
Likert scale

The Matrix_SD style allows creating a Semantic Differential scale question matrix like this:
Semantic Differential scale

Both kinds of scales are easily created with the Matrix wizard. This wizard automatically creates questions that use these styles.

Date is used with a single-line text field. It checks that the date entered conforms to a specific date format, which by default is m/d/y.
To use a different date format, modify the content of the Date Format field:

Date Style

Use the letters m, d, and y to represent month, day, year.
A single letter allows values starting with 1, two letters require values to start with 01.
yy allows values between 00 and 99. yyyy allows values between 1900 and 2099.
The parts of the date can be separated with a slash, dash, or period.

Examples:
   m/d/y allows any length fields such as 12/31/08 or 12/31/2008
   mm/dd/yy requires two digits for all fields such as 12/31/08
   yyyy-mm-dd requires four digit years and two digits for others such as 2008-12-31
   yy.mm.dd requires two digits for all fields such as 08.12.31

Number is used with a single-line text field. It checks that the number entered conforms to a specific format, which by default is an integer without decimal places or thousands separators.
Note that the number is stored in the database as a string, including all the separators. Negative numbers are always allowed.
To use a different number format, modify the content of the Decimal Places and Decimals separator fields:

Number Style
If Decimal places is 0, the number must be an integer value with no decimals. 0 is the default.
If Decimal places is a positive number, the number must have that many decimals after the decimal separator.
If Decimal places is a negative number, the number may have up to that many decimals after the decimal separator.
The Decimals separator character can be set to a period or a comma. The default is a period.

Examples, using a period as a decimal separator
2 allows 1.00 and rejects 1 1. 1.2 and 1.234
-3 allows 1, 1.2, 1.23, 1.234 and rejects 1. and 1.2345

E-mail is used with a single-line text field. It checks that the e-mail address entered has a valid e-mail syntax. It does not check that the address is a valid email-address.

Multiple column layouts are created by adding a question that uses the ColumnBegin style, inserting a series of questions, adding a question with the ColumnBreak style, adding more questions, and finally adding another question with the ColumnEnd style. This will give a two column look as illustrated below. Additional ColumnBreak questions can be used for additional columns.

  Have you used our web site ?
  Yes
  No
  Other 

 

Why do you visit our web site ?
(check all that apply)
  Entertainment
  Shopping
  News
  Information
  Your e-mail

 

Your phone:


State: 

ReportText allows entering text and HTML. Questions that use this style are never displayed in respondent questionnaires, and they are not visible in the Visual Editor; they can only be created with the List Editor. These questions are included only in Univariate Reports, where they are used to add appropriate text at the given place in a report.

See also Creating question styles.

Next: Question Piping