Skip to content

Feature: Freetext questions

Christopher Mark Fullarton requested to merge feature_freetextQuestions into staging

This update will introduce a new question type: the free text questions.

First of all it was required to change some parts of the backend logic regarding answer options so please test carefully before merging this request.

How does it work?

  1. Choose the new free text question type from the question view
  2. Proceed to the answer option view
  3. Check (or uncheck) any of the options you like. The impact on the responses is described below
  4. Provide an answer text
  5. Go on as usual

The attendee will see an text view aswell in the voting view. He cannot see the sample answer option through the splashscreen. Also in the live results the "show question" splashscreen will not show the provided answer option until the quiz round is over.

Responses which match the criteria and the sample text as provided above will be treated as correct. All other responses will be marked as wrong.

Answer configuration

There are four types of configuration options:

  1. Use upper and lower case letters. If this is false the responses will not be checked for case sensitive writing
  2. Use white spaces. If this is false any whitespaces will not be checked
  3. Use punction. If this is false any punction marks (question mark, dot, comma, semicolon, exclamation mark, quotation mark) will not be checked
  4. Use answer words sequence. If this is false each of the provided words of the answer option is treated as keyword. If the keyword is not found in the provided response it will be marked as wrong.

Note that if the answers text shall contain keywords it is not possible to check for white spaces and punction since this does not make sense anymore then.

Internal structure

There is a new question type "FreeTextQuestion" which contains exactly one answer option of the new answer option type "FreeTextAnswerOption".

FreeTextQuestions cannot hold any other type of answer option.

The validation is just like the regular "DefaultAnswerOption".

Merge request reports