Desktop User Guides > Professional > Interview scripting > Interview scripting: Getting started > Writing a text question
 
Writing a text question
A text question requires a text response. Text questions are sometimes called verbatims or open ends.
This example shows how to write a text question that looks like this:
This graphic is described in the surrounding text.
Procedure
1 Enter a name for the question. Choose question names that reflect the question text. This question asks for the respondent’s email address so type Email as the question name:
Metadata(en-us, Question, label)
  SurveyTitle "Tea Survey" info;
  Email
End Metadata
2 Type a space followed by the question text enclosed in double quotation marks:
Metadata(en-us, Question, label)
  SurveyTitle "Tea Survey" info;
  Email "Please enter your email address."
3 Add the text keyword to specify that this is a text question.
Metadata(en-us, Question, label)
  SurveyTitle "Tea Survey" info;
  Email "Please enter your email address." text
End Metadata
4 To ensure a reasonable response, assume that the response must contain between ten and 50 characters. Type the allowed response range in square brackets. End the question with a semicolon.
Metadata(en-us, Question, label)
  SurveyTitle "Tea Survey" info;
  Email "Please enter your email address." text [10..50];
End Metadata
5 Press F5 to run the script. When this question is displayed, you can either answer it by typing some text and then clicking Next, or you can press F5 to continue without entering an answer.
If you cannot enter text for a new topic, your script might still be running from the previous topic. Click the Stop button This graphic is described in the surrounding text. to stop it.
Requirements
UNICOM Intelligence Professional with Interview Scripting.
Next
Writing an integer question
See also
Interview scripting: Getting started