Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

validate an answer type fill a line with 1 word

  • rrhhtopic
  • rrhhtopic's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 1 month ago #92117 by rrhhtopic
Hi we need make a test an validate all questions . We know with radio type how to solve but some questions are "fill a line with a word" type and need validate too.

For example

The quick _______ fox

and only "brown" is correct answer to continue and add 1 point to total

is possible? how?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 years 1 month ago #92174 by tpartner
You can use Expression Manager and an equation question to store the score.
Code:
if(q1.shown == 'brown', 1, 0)

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose