Millisecond Forums

Open ended on IOS

https://forums.millisecond.com/Topic24585.aspx

By audiosophy - 4/16/2018

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>


By Dave - 4/17/2018

audiosophy - Tuesday, April 17, 2018
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>



It might work if you explicitly specify /multiline=false, but I'm not 100% sure.
By audiosophy - 4/17/2018

Dave - Tuesday, April 17, 2018
audiosophy - Tuesday, April 17, 2018
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>



It might work if you explicitly specify /multiline=false, but I'm not 100% sure.

It did! Thanks again Dave - your support and prompt replies are invaluable