Free Text Question

An ISLE component for questions where answers by students should be supplied in the form of free text.

Example:

<FreeTextQuestion 
    question="What is the p-value your obtained for this test?" 
    rows={1} 
    solution="1.476303e-05" 
/>

Open interactive preview

Options:

  • question | (string|node): the question displayed at the top of the free text question component. Default: ''.
  • hints | Array<string>: hints providing guidance on how to answer the question. Default: [].
  • hintPlacement | string: placement of the hints (either top, left, right, or bottom). Default: 'bottom'.
  • solution | string: a model answer to the problem. Default: ''.
  • rows | number: number of rows of the text field for students to type their answers. Default: 5.
  • chat | boolean: controls whether to enable group chat should for the question. Default: false.
  • resizable | boolean: controls whether the text area should be resizable. Default: false.
  • placeholder | string: placeholder text displayed before user has entered any text. Default: 'Enter your answer here...'.
  • submissionMsg | string: notification displayed when the learner first submits his answer. Default: ''.
  • resubmissionMsg | string: notification displayed for all submissions after the first one. Default: 'You have successfully re-submitted your answer.'.
  • maxlength | number: maximum allowed number of characters. Default: 2500.
  • onChange | function: callback invoked every time the text area value changes. Default: onChange() {}.

results matching ""

    No results matching ""