Multiple answers for fill in the blanks
April 4, 2013 12:00 AM
Hi all,
I would like to do a fill in the blank qns for 3 textfields.
Eg) The answers are a, b, c, d, e, f, g, h and i
So any combination set of 3 can be filled into the 3 textfields.
Like
a, b, c or b, c, d or d, e, a etc...
So the list of possible answers to be entered into the question will go on and on.
Is there any effective solution to this type of fill in the blank question?
Help appreciated. Thanks.
Discussion (3)
You have to do four simple actions to check the fields.
1. If field1 contains correct1 OR contains correct2 OR contains correct3 ---> set field1var to 'ok'
2. If field2 contains correct1 OR contains correct2 OR contains correct3 ---> set field2var to 'ok'
3. If field3 contains correct1 OR contains correct2 OR contains correct3 ---> set field3var to 'ok'
4. If field1var contains 'ok' AND field2var contains 'ok' AND field3var contains 'ok' ---> do something because all three fields are filled in correctly
The above system will work 99% of the time, although it will report all correct even if two or three fields are the same (but correct). You can add an extra action to control this but then it becomes so complex it is easier to just add a tiny piece of javascript to check your question.
What do you mean by easier to just add a tiny piece of javascript to check your question?? Isnt adding an action similar to adding js in lectora??
@ssneg 49979 wrote:
You have to do four simple actions to check the fields.
1. If field1 contains correct1 OR contains correct2 OR contains correct3 ---> set field1var to 'ok'
2. If field2 contains correct1 OR contains correct2 OR contains correct3 ---> set field2var to 'ok'
3. If field3 contains correct1 OR contains correct2 OR contains correct3 ---> set field3var to 'ok'
4. If field1var contains 'ok' AND field2var contains 'ok' AND field3var contains 'ok' ---> do something because all three fields are filled in correctly
The above system will work 99% of the time, although it will report all correct even if two or three fields are the same (but correct). You can add an extra action to control this but then it becomes so complex it is easier to just add a tiny piece of javascript to check your question.
It's similar, but the price for ease and convenience is that your options are a bit limited in what you can do. JavaScript has no limits :)
Discussions have been disabled for this post