Published on Xoetrope (http://www.xoetrope.com)

Configuring a survey

Screenshots [0] •  Videos [0] •  Demos [0] •  Documentation [0] •  Tutorials [0] •  Articles [0] •  Knowledge Base [0] •  Zone [0]


Configuring a survey

Startup properties

A survey application requires some additional configuration that needs to be set up in project's startup.properties file. The example of the survey specific part of the file is shown below.

 
 
Listing 1 - project's startup.properties file
 
 
SurveyName=SampleSurvey
SurveyInputType=Db
SurveyOutputType=File
SurveyOutputFile=responses.xml
FinishPage=ThankYouPage
DefaultQuestionFormat=TemplateQuestion
QuestionsPerPage=5
LifeCycleListener=com.xoetrope.survey.SurveyManager
RestartSurvey=true
Language=en
 
 

The meaning of the properties above is as follows:

Question Pages

There are four possible ways of rendering questions and possible answers in a survey application.The one that should be used is specified by the DefaultQuestionFormat startup property which can take the following values:

Question
The possible answers are rendered as a set of mutually exclusive checkmarks, mutliple choice checkmarks or free text edit fields, depending on the type of a question. The screenshot below is an example of this type of rendering.

 
 
Question
 
 

[0]

 
 

WrapQuestion
Question text is rendered as a single strip wrapped over multiple lines and without using a header. The screenshot of a sample application using this type of rendering is shown below.

 
 
WrapQuestion
 
 

[0]

 
 

KioskQuestion
Question text is rendered in a form suitable for kiosk displaying one question at a time. The example is shown below.

 
 
KioskQuestion
 
 

[0]

 
 

TemplateQuestion
Questions are rendered using the customizable page templates. More detail description of Question and Page templates can be found here [0]. The screenshot below shows a sample Page Template.

 
 
TemplateQuestion
 
 

[0]

 
 

A Welcome Page

A welcome screen, pointed to by the StartClass startup property, is used to present the user with some information about the survey and also allows to choose the language in which the survey is presented. The list of available languages is specified in the lang/LanguageList.properties. The screenshot below shows a sample WelcomePage generated by the SurveyWizard.

 
 
Welcome Page
 
 

[0]

 
 

Source URL:
http://www.xoetrope.com/xui/surveys/configuration