Drag and Drop Questions

Well you certainly can - just is it really worth the effort? Here you go.1. You need to highlight the drop locations that have the wrong or missing item. So first create a hidden highlight box around each drop location (hopefully the items being dropped are roughly the same size otherwise you have your hands full.) I recommend using a not-initially-visible text box with a 3px blue, orange, or aqua border. Give each a different name - say "hi-lite-1", -2, etc. Make one box and then copy and paste and change the name and place where you need it.Put all these boxes in a group - say "answer-hi-lites"2. Create a button that says something like "Check My Answer". This button evaluates the question variable using several actions to determine what was right and what wasn't. 3. Button Action 1: Hide the highlight box group. You do this because you may want to let them try again with a clean screen.4. Button Actions 2-9: One action for every drop location. You need to know what Lectora puts in the answer variable. (you can see that for all kinds of questions in my toolkit - links below.) Lectora shows the answer as a pair of numbers like 3-2 which means that drag item #3 had been dropped on drop location 2. A correct answer would be 3-3. So you need 8 actions:On: Click; Action: Show; Target: hi-lite-1; Condition: question variable does not contain 1-1.On: Click; Action: Show; Target: hi-lite-2; Condition: question variable does not contain 2-2.etc. to 8.Tool Kit HTMLLectora Tool Kit Source zippedEdited By: bpitman on 2006-9-19 17:5:46

Discussions have been disabled for this post