Making the performance summary/feedback screen optional


Author
Message
danielderbyshire
danielderbyshire
Associate Member (113 reputation)Associate Member (113 reputation)Associate Member (113 reputation)Associate Member (113 reputation)Associate Member (113 reputation)Associate Member (113 reputation)Associate Member (113 reputation)Associate Member (113 reputation)Associate Member (113 reputation)
Group: Forum Members
Posts: 4, Visits: 16
Hi All

I am looking to take a script from the Inquisit Test Library, in particular two scripts from the IAT section https://www.millisecond.com/download/library/iat/ and edit it so that the first screen has respondents decide (YES or NO) whether to see the final performance summary screen, or not. 

Could anyone please point me in the direction of some resources that could help me figure out how to go about doing this please? If so it would be much appreciated. 

Kind regards

Daniel
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
danielderbyshire - 10/2/2019
Hi All

I am looking to take a script from the Inquisit Test Library, in particular two scripts from the IAT section https://www.millisecond.com/download/library/iat/ and edit it so that the first screen has respondents decide (YES or NO) whether to see the final performance summary screen, or not. 

Could anyone please point me in the direction of some resources that could help me figure out how to go about doing this please? If so it would be much appreciated. 

Kind regards

Daniel

The scripts already have a parameter (parameters.showsummaryfeedback) that determines whether the feedback is shown. All you need to do is add a <trial> to the scripts that sets the parameter to either false or true depending on the participant's response.

<block summary_choice>
/ trials = [1=summarychoicetrial]
</block>

<trial summarychoicetrial>
/ ontrialend = [
if (trial.summarychoicetrial.response == 18) {
parameters.showsummaryfeedback = true;
} else if (trial.summarychoicetrial.response == 23) {
parameters.showsummaryfeedback = false;
};
]
/ stimulusframes = [1=summarychoice]
/ validresponse = ("E", "I")
</trial>

<text summarychoice>
/ items = ("Do you want to see your results? Press 'E' for yes, press 'I' for no.")
</text>

Then run the above block and trial before the summary block:

<expt>
/ preinstructions = (iatintro)
/subjects = (1 of 2)
/groupassignment = groupnumber
/ blocks = [
1=targetcompatiblepractice;
2=attributepractice;
3=compatibletest1;
4=compatibletestinstructions;
5=compatibletest2;
6=targetincompatiblepractice;
7=incompatibletest1;
8=incompatibletestinstructions;
9=incompatibletest2;
10=summary_choice;
11=summary;

]
/onexptend = [values.completed = 1]
</expt>

<expt>
/ preinstructions = (iatintro)
/subjects = (2 of 2)
/groupassignment = groupnumber
/ blocks = [
1=targetincompatiblepractice;
2=attributepractice;
3=incompatibletest1;
4=incompatibletestinstructions;
5=incompatibletest2;
6=targetcompatiblepractice;
7=compatibletest1;
8=compatibletestinstructions;
9=compatibletest2;
10=summary_choice;
11=summary;

]
/onexptend = [values.completed = 1]
</expt>

Attachments
iat.iqx (203 views, 36.00 KB)
danielderbyshire
danielderbyshire
Associate Member (113 reputation)Associate Member (113 reputation)Associate Member (113 reputation)Associate Member (113 reputation)Associate Member (113 reputation)Associate Member (113 reputation)Associate Member (113 reputation)Associate Member (113 reputation)Associate Member (113 reputation)
Group: Forum Members
Posts: 4, Visits: 16
Dave - 10/2/2019
danielderbyshire - 10/2/2019
Hi All

I am looking to take a script from the Inquisit Test Library, in particular two scripts from the IAT section https://www.millisecond.com/download/library/iat/ and edit it so that the first screen has respondents decide (YES or NO) whether to see the final performance summary screen, or not. 

Could anyone please point me in the direction of some resources that could help me figure out how to go about doing this please? If so it would be much appreciated. 

Kind regards

Daniel

The scripts already have a parameter (parameters.showsummaryfeedback) that determines whether the feedback is shown. All you need to do is add a <trial> to the scripts that sets the parameter to either false or true depending on the participant's response.

<block summary_choice>
/ trials = [1=summarychoicetrial]
</block>

<trial summarychoicetrial>
/ ontrialend = [
if (trial.summarychoicetrial.response == 18) {
parameters.showsummaryfeedback = true;
} else if (trial.summarychoicetrial.response == 23) {
parameters.showsummaryfeedback = false;
};
]
/ stimulusframes = [1=summarychoice]
/ validresponse = ("E", "I")
</trial>

<text summarychoice>
/ items = ("Do you want to see your results? Press 'E' for yes, press 'I' for no.")
</text>

Then run the above block and trial before the summary block:

<expt>
/ preinstructions = (iatintro)
/subjects = (1 of 2)
/groupassignment = groupnumber
/ blocks = [
1=targetcompatiblepractice;
2=attributepractice;
3=compatibletest1;
4=compatibletestinstructions;
5=compatibletest2;
6=targetincompatiblepractice;
7=incompatibletest1;
8=incompatibletestinstructions;
9=incompatibletest2;
10=summary_choice;
11=summary;

]
/onexptend = [values.completed = 1]
</expt>

<expt>
/ preinstructions = (iatintro)
/subjects = (2 of 2)
/groupassignment = groupnumber
/ blocks = [
1=targetincompatiblepractice;
2=attributepractice;
3=incompatibletest1;
4=incompatibletestinstructions;
5=incompatibletest2;
6=targetcompatiblepractice;
7=compatibletest1;
8=compatibletestinstructions;
9=compatibletest2;
10=summary_choice;
11=summary;

]
/onexptend = [values.completed = 1]
</expt>

That is absolutely fantastic, it worked perfectly, thank you so much for the help, that has really helped me to better understand how experiments are put together in Inquisit even beyond the narrow problem I described. Thanks again for taking the time to give such a detailed response.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search