Textbox for practice trials


Author
Message
Thao Pham
Thao Pham
Associate Member (189 reputation)Associate Member (189 reputation)Associate Member (189 reputation)Associate Member (189 reputation)Associate Member (189 reputation)Associate Member (189 reputation)Associate Member (189 reputation)Associate Member (189 reputation)Associate Member (189 reputation)
Group: Forum Members
Posts: 11, Visits: 28
Hello,
I am very new to Inquisit so this might be a stupid question.  Hope you can help!
I am preparing a task (similar to the TheThe Hungry Monkey).  I want to have 4 practice trials where they answer the training question before the participants can move on to the training game against the computer. 
Each of my training questions is an image.  At the moment I have this:

<trial practice_1>
/ stimulusframes=[1=practice_picture_1]
/ inputdevice=keyboard
/ validresponse = ("0","1","2","3","4")
/ correctresponse = ("3")
/ recorddata = false
/ ontrialend = [ values.correct_practice += trial.practice_1.correct]
</trial>

However, this only shows the image (with the question on it) and no matter how I tried to respond, it doesn't move on.  So I thought I should create a textbox to have a place to collect the response, thus this:

<textbox practice_response>
/ caption = "Your answer:"
/ validresponse = ("0","1","2","3","4")
/ correctresponse = ("3")
/ fontstyle = ("Arial", 4.08%, true, false, false, false, 5, 0)
/ position = (50% , 90%)
/ range = (0, 10)
/ responsefontstyle = ("Arial", 4.08%, true, false, false, false, 5, 0)
/ textboxsize = (30%, 10%)
/ txcolor = black
</textbox>

<trial practice_1>
/ stimulusframes=[1=practice_picture_1, practice_response]
/ inputdevice=keyboard
/ validresponse = ("0","1","2","3","4")
/ correctresponse = ("3")
/ recorddata = false
/ ontrialend = [ values.correct_practice += trial.practice_1.correct]
</trial>

This returns an error that says:  Could not locate element "practice_response".

Can you tell me what is it that I need to change here for it to work?  Thank you in advance!

Thao


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: 13K, Visits: 104K
Thao Pham - 2/24/2020
Hello,
I am very new to Inquisit so this might be a stupid question.  Hope you can help!
I am preparing a task (similar to the TheThe Hungry Monkey).  I want to have 4 practice trials where they answer the training question before the participants can move on to the training game against the computer. 
Each of my training questions is an image.  At the moment I have this:

<trial practice_1>
/ stimulusframes=[1=practice_picture_1]
/ inputdevice=keyboard
/ validresponse = ("0","1","2","3","4")
/ correctresponse = ("3")
/ recorddata = false
/ ontrialend = [ values.correct_practice += trial.practice_1.correct]
</trial>

However, this only shows the image (with the question on it) and no matter how I tried to respond, it doesn't move on.  So I thought I should create a textbox to have a place to collect the response, thus this:

<textbox practice_response>
/ caption = "Your answer:"
/ validresponse = ("0","1","2","3","4")
/ correctresponse = ("3")
/ fontstyle = ("Arial", 4.08%, true, false, false, false, 5, 0)
/ position = (50% , 90%)
/ range = (0, 10)
/ responsefontstyle = ("Arial", 4.08%, true, false, false, false, 5, 0)
/ textboxsize = (30%, 10%)
/ txcolor = black
</textbox>

<trial practice_1>
/ stimulusframes=[1=practice_picture_1, practice_response]
/ inputdevice=keyboard
/ validresponse = ("0","1","2","3","4")
/ correctresponse = ("3")
/ recorddata = false
/ ontrialend = [ values.correct_practice += trial.practice_1.correct]
</trial>

This returns an error that says:  Could not locate element "practice_response".

Can you tell me what is it that I need to change here for it to work?  Thank you in advance!

Thao


A <textbox> element is not a stimulus, you cannot display it via /stimulusframes in a <trial>. <textbox> elements only work as /questions on <surveypage> elements.

If you wish to have a trial-type element that collects a typed response, use the special <openended> trial element:

https://www.millisecond.com/support/docs/v4/html/language/elements/openended.htm
Thao Pham
Thao Pham
Associate Member (189 reputation)Associate Member (189 reputation)Associate Member (189 reputation)Associate Member (189 reputation)Associate Member (189 reputation)Associate Member (189 reputation)Associate Member (189 reputation)Associate Member (189 reputation)Associate Member (189 reputation)
Group: Forum Members
Posts: 11, Visits: 28
Thank you so much for the fast reply!!  It works as I want now!

Thao
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search