I am trying to make a Stroop task in Soscisurvey using Assignment.
The main block of the task (without feedback) is ok.
However, I need to present error feedback in the practice block.
I tried validating the response on each item from Assignment task individually - not working (not possible?), I gave up on that as I will discard the practice trials anyway.
I tried a simpler solution, following examples from here: https://www.soscisurvey.de/help/doku.php/en:create:feedback-correct.
I created several one-item assignments, and put each one on separate pages.
After each one, I added the page with the following php code:
if (value('ST01_01') != 1) {
goToPage('ST1'); # repeat page essentially
} else {
goToPage('ST2'); # go to next page
}
It does not work, and I just cannot figure out why.
When I answer correctly, it presents the next question page. (everything's fine)
But if I answer incorrectly, it returns a blank page with back and next buttons.
Tried debugging it, the value recorded corresponds to the one I chose.
If anybody has a specific idea on what could be wrong here, or if you have any advice/example code on designing a Stroop task in soscisurvey, I would be eternally greatful.
Thanks!