Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: validate an answer type fill a line with 1 word

validate an answer type fill a line with 1 word 3 years 10 months ago #92117

  • rrhhtopic
  • rrhhtopic's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 2
  • Karma: 0
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 administrator has disabled public write access.

validate an answer type fill a line with 1 word 3 years 10 months ago #92174

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6568
  • Thank you received: 1477
  • Karma: 579
You can use Expression Manager and an equation question to store the score.
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 administrator has disabled public write access.
Time to create page: 0.307 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form