How to Present Stimuli Provided by Subjects (Inquisit 5)


Author
Message
AnjaK
AnjaK
Esteemed Member (1.8K reputation)Esteemed Member (1.8K reputation)Esteemed Member (1.8K reputation)Esteemed Member (1.8K reputation)Esteemed Member (1.8K reputation)Esteemed Member (1.8K reputation)Esteemed Member (1.8K reputation)Esteemed Member (1.8K reputation)Esteemed Member (1.8K reputation)
Group: Forum Members
Posts: 12, Visits: 27
Dave - Monday, August 20, 2018
There is no <item> element called "responseitems" in the code you posted. The only <item> element you have defined is called "probe".

If you want to store the responses in

<item probe>
</item>

then your /ontrialend logic ought to read:

<surveypage page1>
/ questions = [1=name; 2=nameM; 3=nameV; 4=date; 5=place]
/ ontrialend = [item.probe.insertitem(textbox.name.response, 1)]
/ ontrialend = [item.probe.insertitem(textbox.nameM.response, 2)]
/ ontrialend = [item.probe.insertitem(textbox.nameV.response, 3)]
/ ontrialend = [item.probe.insertitem(textbox.date.response, 4)]
/ ontrialend = [item.probe.insertitem(textbox.place.response, 5)]
</surveypage>

of course, great, thank you, it works now!

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
There is no <item> element called "responseitems" in the code you posted. The only <item> element you have defined is called "probe".

If you want to store the responses in

<item probe>
</item>

then your /ontrialend logic ought to read:

<surveypage page1>
/ questions = [1=name; 2=nameM; 3=nameV; 4=date; 5=place]
/ ontrialend = [item.probe.insertitem(textbox.name.response, 1)]
/ ontrialend = [item.probe.insertitem(textbox.nameM.response, 2)]
/ ontrialend = [item.probe.insertitem(textbox.nameV.response, 3)]
/ ontrialend = [item.probe.insertitem(textbox.date.response, 4)]
/ ontrialend = [item.probe.insertitem(textbox.place.response, 5)]
</surveypage>
AnjaK
AnjaK
Esteemed Member (1.8K reputation)Esteemed Member (1.8K reputation)Esteemed Member (1.8K reputation)Esteemed Member (1.8K reputation)Esteemed Member (1.8K reputation)Esteemed Member (1.8K reputation)Esteemed Member (1.8K reputation)Esteemed Member (1.8K reputation)Esteemed Member (1.8K reputation)
Group: Forum Members
Posts: 12, Visits: 27
Hi all, I'd appreciate your help with the following question:

based on the tutorial here: https://www.millisecond.com/support/docs/v5/html/howto/howtosubjectprovideditems.htm

I adapted the code (see below) for my experiment yet always get the following error message: Expression 'item.responseitems.insertitem(textbox.name.response,1)' is invalid. Expression contains an unknown function.

Does anyone know what this error refers to?

Here is my code:

<item probe>
</item>

<textbox name>
/ caption = "Bitte geben Sie Ihren Vornamen ein:"
</textbox>

<textbox nameM>
/ caption = "Bitte geben Sie den Vornamen Ihrer Mutter ein:"
</textbox>

<textbox nameV>
/ caption = "Bitte geben Sie den Vornamen Ihres Vaters ein:"
</textbox>

<textbox date>
/ caption = "Bitte geben Sie ihren Geburtstag ein (z.B. '9. April'):"
</textbox>

<textbox place>
/ caption = "Bitte geben Sie ihre Geburtsstadt ein:"
</textbox>

<surveypage page1>
/ questions = [1=name; 2=nameM; 3=nameV; 4=date; 5=place]
/ ontrialend = [item.responseitems.insertitem(textbox.name.response, 1)]
/ ontrialend = [item.responseitems.insertitem(textbox.nameM.response, 2)]
/ ontrialend = [item.responseitems.insertitem(textbox.nameV.response, 3)]
/ ontrialend = [item.responseitems.insertitem(textbox.date.response, 4)]
/ ontrialend = [item.responseitems.insertitem(textbox.place.response, 5)]
</surveypage>

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search