File:  [LON-CAPA] / loncom / html / adm / help / tex / Authoring_StringResponse.tex
Revision 1.2: download - view: text, annotated - select for diffs
Tue Jan 24 19:26:27 2017 UTC (7 years, 6 months ago) by damieng
Branches: MAIN
CVS tags: HEAD
misc minor edits in authoring doc

\label{Authoring_StringResponse}\index{stringresponse}

\textbf{stringresponse} queries for a string without any initial constraint.

Possible attributes are:
\begin{itemize}
  \item \textbf{answer}: the correct answer, either a perl list or scalar
  \item \textbf{type}: specifies how the string is checked (like the CAPA styles).
    Possible values are:
    \begin{description}
      \item[cs]: case sensitive, order important
      \item[ci]: case insensitive, order important
      \item[mc]: case insensitive, order unimportant
      \item[re]: regular expression
    \end{description}
  \item \textbf{answerdisplay}: string to display for answer
  \item \textbf{preprocess}: optional, pre-process Perl subroutine
\end{itemize}

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>