Hi
I am having trouble implementing an open ended element on IOS (iPad Air), specifically the one that works with the RAT (Remote Associations Task).
What I would like to do is have the user enter their word and then hit enter on the IOS keyboard pop up to go on to the next question.
Currently, hitting enter gives a beeping computer sound and it doesn't go forward. I have to minimize the computer screen pop up and then touch the continue button.
The code is:
<openended rat>
/ ontrialbegin = [
values.triadCount += 1;
values.solution = "";
]
/ stimulusframes = [1 = triad, debugSolution]
/ mask = alphabetic
/ charlimit = 100
/ iscorrectresponse = [
values.solution = item.triads_solution.item(text.triad.currentitemnumber);
values.difficulty = item.triadDifficulty.item(text.triad.currentitemnumber);
tolower(openended.rat.response) == values.solution;
]
/ ontrialend = [
list.accuracy.insertitem(openended.rat.correct, 1);
if (values.difficulty == "easy"){
list.accuracy_easy.insertitem(openended.rat.correct, 1);
if (openended.rat.correct){
list.latencies_easy.insertitem(openended.rat.latency, 1);
list.latencies.insertitem(openended.rat.latency, 1);
};
} else if (values.difficulty == "medium"){
list.accuracy_medium.insertitem(openended.rat.correct, 1);
if (openended.rat.correct){
list.latencies_medium.insertitem(openended.rat.latency, 1);
list.latencies.insertitem(openended.rat.latency, 1);
};
} else if (values.difficulty == "hard"){
list.accuracy_hard.insertitem(openended.rat.correct, 1);
if (openended.rat.correct){
list.latencies_hard.insertitem(openended.rat.latency, 1);
list.latencies.insertitem(openended.rat.latency, 1);
};
};
]
/ response = timeout(parameters.maxResponseWindow)
/ branch = [
openended.rat;
]
/ size = (30%, 5%)
/ inputdevice = keyboard
/ buttonlabel = "Press [Enter] to continue"
</openended>