Answer Type Creator 

Feedback Server 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 :


Selection Types

  • Allow Selection if we are creating a selection type we need to check this option. 

  • Field Entry  is our selection type offering an alternate entry like the Selection - Other type.


Field Types

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

  • Allow Selection if we are creating a field type we don't need to check this option. . 

  • Field Entry  we need to check this option to display the extra settings related to field types.
     
  • Rich Field does our filed allow extended HTML edition features.

  • Field Width of our field.

  • Field Height of our field. If the height is more than one our field will be automatically rendered as a multi-line textbox.    

  • Field Max. Length the maximum text length a respondent can enter. The check is done server side to see if the user didn't enter more than the max length. 

  • Javascript Function Name is the name of the javascript function that will be called to validate the field content. The javascript function should be defined inside the Javascript code option.

  • Error Message  is the error message that will show up if the javascript function return false.

  • Javascript Code is the javascript code that will validate the field content. The function must return true if the condition is matched or false if the method could not validate the content of the field.

    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

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

  • Xml File Name is the file name of the Xml file that the type will be bound to.

    Note that the Xml file has to be in the directory specified by Feedback ServerXmlDataPath 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>
    </FFSDataSource>


Sql Bound Types

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

  • Sql Query is the Sql query that will populate the dropdown list. You can learn more about Sql bound types by reading the Sql Bound Types Introduction
     



Related Topics
Builder Tutorial
Answer Types Introduction
Scoring Introduction 
Answer Editor 
   

©2006 Data Illusion. All Rights Reserved.