Open ended on IOS


Open ended on IOS

Author
Message
audiosophy
audiosophy
Esteemed Member
Esteemed Member (2.3K reputation)Esteemed Member (2.3K reputation)Esteemed Member (2.3K reputation)Esteemed Member (2.3K reputation)Esteemed Member (2.3K reputation)Esteemed Member (2.3K reputation)Esteemed Member (2.3K reputation)Esteemed Member (2.3K reputation)Esteemed Member (2.3K reputation)

Group: Forum Members
Posts: 59, Visits: 206
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
Supreme Being (374K reputation)Supreme Being (374K reputation)Supreme Being (374K reputation)Supreme Being (374K reputation)Supreme Being (374K reputation)Supreme Being (374K reputation)Supreme Being (374K reputation)Supreme Being (374K reputation)Supreme Being (374K reputation)

Group: Administrators
Posts: 8.8K, Visits: 36K
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
Esteemed Member
Esteemed Member (2.3K reputation)Esteemed Member (2.3K reputation)Esteemed Member (2.3K reputation)Esteemed Member (2.3K reputation)Esteemed Member (2.3K reputation)Esteemed Member (2.3K reputation)Esteemed Member (2.3K reputation)Esteemed Member (2.3K reputation)Esteemed Member (2.3K reputation)

Group: Forum Members
Posts: 59, Visits: 206
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


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....






Millisecond Forums


Search