Millisecond Forums

Return entered text as stimulus, but only when something was actually entered

https://forums.millisecond.com/Topic6181.aspx

By ischnei1 - 6/8/2011

Hi Everybody, 



Trying to build the following set up: 


Participants fill in up to 4 arguments regarding a certain topic. Then, they are again presented with these all of theses arguments on screenat once. Then, each argument seperately appears together with a likert scale in order to rate each argument seperately.  So far, I got this to work. However, the text boxes are not obligatory, in other words, they can be left blank. In my current set up, this will lead to the appearance of a likert scale with no stimulus. Is there some way in which In quisit can skip the trials in which the item is empty? Does anybody have an idea on this?



Below is my rough code so far. 





************************


Arguments


************************



<textbox pos1>


/ textboxsize = (20,5)


/ position = (5, 30)


/ required = false


/ multiline = true


</textbox>



<textbox pos2>


/ textboxsize = (20,5)


/ position = (5, 40)


/ multiline = true


/ required = false


</textbox>



<textbox pos3>


/ textboxsize = (20,5)


/ position = (5, 50)


/ required = false


/ multiline = true


</textbox>



<textbox pos4>


/ textboxsize = (20,5)


/ position = (5, 60)


/ required = false


/ multiline = true


</textbox>




<surveypage boxes>


/ finishlabel = "verder"


/ itemfontstyle = ("Arial", 20,true,false,false,false,5,0)


/ txcolor = (29, 29, 197)


/ responsefontstyle = ("Arial", 16,false,false,false,false,5,0)


/ questions = [1=pos1; 2 = pos2; 3= pos3; 4 = pos4]


/ recorddata = true


/ ontrialend = [item.pos1.item = textbox.pos1.response; item.pos2.item = textbox.pos2.response; item.pos3.item = textbox.pos3.response;item.pos4.item = textbox.pos4.response  ]


</surveypage>





************


returning text response


*************


<item pos1>


</item>



<item pos2>


</item>



<item pos3>


</item>



<item pos4>


</item>




<text pos1>


/ position = (10, 30)


/ items = pos1


</text>



<text pos2>


/ position = (10, 40)


/ items = pos2


</text>



<text pos3>


/ position = (10, 50)


/ items = pos3


</text>



<text pos4>


/ position = (10, 60)


/ items = pos4


</text>



<trial response>


/ stimulusframes = [1=pos1, pos2, pos3, pos4]


/ validresponse = (" ")


</trial>





<block boxes>


/ trials = [1=boxes; 2=response; 3 = likertpos1; 4 = likertpos2; 5 = likertpos3; 6 = likertpos4]


/ screencolor = (255,255,255)


</block>



<likert likertpos1>


 / anchors=[1="helemaal niet positief"; 9="heel positief"]


/ anchorwidth = 100


/ numpoints = 9


/ position = (50, 70) 


/ mouse = true


/ stimulusframes=[1= pos1]


/ fontstyle = ("Verdana", 1.61%, true, false, false, false, 5, 0)


</likert>




<likert likertpos2>


 / anchors=[1="helemaal niet positief"; 9="heel positief"]


/ anchorwidth = 100


/ numpoints = 9


/ position = (50, 70) 


/ mouse = true


/ stimulusframes=[1= pos2]


/ fontstyle = ("Verdana", 1.61%, true, false, false, false, 5, 0)


</likert>




<likert likertpos3>


 / anchors=[1="helemaal niet positief"; 9="heel positief"]


/ anchorwidth = 100


/ numpoints = 9


/ position = (50, 70) 


/ mouse = true


/ stimulusframes=[1= pos3]


/ fontstyle = ("Verdana", 1.61%, true, false, false, false, 5, 0)


</likert>



<likert likertpos4>


 / anchors=[1="helemaal niet positief"; 9="heel positief"]


/ anchorwidth = 100


/ numpoints = 9


/ position = (50, 70) 


/ mouse = true


/ stimulusframes=[1= pos4]


/ fontstyle = ("Verdana", 1.61%, true, false, false, false, 5, 0)


</likert>




By Dave - 6/8/2011

Is there some way in which In quisit can skip the trials in which the item is empty?


How about the /skip attribute? E.g.


<likert likertpos1>
/ skip = [item.pos1.itemcount==0]
/ anchors=[1="helemaal niet positief"; 9="heel positief"]
/ anchorwidth = 100
/ numpoints = 9
/ position = (50, 70)
/ mouse = true
/ stimulusframes=[1= pos1]
/ fontstyle = ("Verdana", 1.61%, true, false, false, false, 5, 0)
</likert>


or something like that...


Regards,


~Dave


By ischnei1 - 6/8/2011

Hi Dave, 



Thanks - was just fiddling with that, but it does not seem to work... Will keep at it a bit more. 



Iris. 

By Dave - 6/8/2011

Alternatively try


/ skip = [item.pos1.item.1==""]


etc.

By ischnei1 - 6/8/2011

Works!



A_W_E_S_O_M_E_!



Thanks Dave.