Copy link to clipboard
Copied
Hi,
i'm working on a project where the user can drag multiple text on multiple drop target.
I know that I can have a "drag rejected" state for sources just after the drop, and that i can have "drop incorrect" state for drop target after submitting.
But actually i need to highlight the wrong drag sources after submitting the quiz.
Is there a way to change the state for wrong (or right) drag sources only after the submit?
Thanks
Copy link to clipboard
Copied
What do you mean by 'after the quiz'? Is that during Review?
Copy link to clipboard
Copied
Sorry, I mean just after the user has pressed the submit button.
Copy link to clipboard
Copied
Do not use the InBuilt States Inbuilt states. Each drag action can have an object action, which you can use to identify the 'wrong' actions. Then use a conditional advanced action triggered by the Failure event of the D&D to show the custom 'wrong' state to the wrongly dropped drag sources.
Copy link to clipboard
Copied
Thanks Lilybiri.
How can I get all the wrong sources in the advanced actions? Is there a variable I can use for them?
EDIT
Sorry, I didn't get your answer right. Could you suggest how can i use object action to mark the wrong answers?
Thank you.
Copy link to clipboard
Copied
No. You'll have to use user vars.
Copy link to clipboard
Copied
Ok, I've created a new user var. Now, how can i store the wrong drag source in this var? You suggested object action, how can i use them?
Copy link to clipboard
Copied
You will need more than one user variable, one for each drag source that is set to a default value of 0, and changed to 1 if the drag source is dropped wrongly. About object actions, have a look at this blog post: