Create answer types

headerlogo.jpg

 

FeedbackServer provides us a way to create our own answer types without any programming knowledge. Using the type creator we can create four types of answer types that we can then re-use inside our questions :

 

Following properties can be set to customize each of our new or existing answer type.

Selection Types

 

Field Types


Code Example to validate a mandatory field :

function isFilled(sender)

{

   if (sender.value.length == 0)

   {

      sender.focus();

      return false;

   }

   else

  {

   return true;

   }

}  

        

 

Xml Bound Types


Note that the Xml file has to be in the directory specified by FeedbackServerXmlDataPath ellement of the web.config. At this time it is not possible to edit or create Xml files through the administration interface.


The format of the Xml file must be as following :


<?xml version="1.0" standalone="yes"?>

<FSDataSource xmlns= "http://www.feedbackserver.com/FSDataSource.xsd">

<XmlDataSource>

   <RunTimeAnswerLabel>Label To Show : </RunTimeAnswerLabel>

   <XmlAnswers>

      <XmlAnswer>

         <AnswerValue></AnswerValue><AnswerDescription>[Select an answer]</AnswerDescription>

      </XmlAnswer>

      <XmlAnswer>

         <AnswerValue>yourvalue1</AnswerValue><AnswerDescription>your answer</AnswerDescription></XmlAnswer>

      </XmlAnswers>

      <XmlAnswer>

         <AnswerValue>yourvalue2</AnswerValue><AnswerDescription>your second answer</AnswerDescription></XmlAnswer>

      </XmlAnswers>

</XmlDataSource>

</FSDataSource>

 

Sql Bound Types

List Items Types

Field Name is the name of the type that will be shown in the type selection inside the Answer Editor.

Collection Layout Renderingis the user interface mode in which the data items will be displayed to the user inside the survey.  

 

 

(c) 2011 Data Illusion Zumbrunn. All Rights Reserved