Open ended on IOS


Author
Message
audiosophy
audiosophy
Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)
Group: Forum Members
Posts: 62, Visits: 212
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>



Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 12K, Visits: 98K
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.

audiosophy
audiosophy
Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)
Group: Forum Members
Posts: 62, Visits: 212
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
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search