+xThank you, that did indeed help!
I got some further questions though:
1) Is it possible to implement a button on each page of a block, which, when pressed, quits the block, so participants could end the test (if they finished before time runs out) regardless on which page they are?
2) I implemented the answer limitation similar to your posted example,as I worked for this task with check boxes as well (-->counting the numbers of ticked boxes,if it's too high, you can't proceed). Now is there a possibility that, when someone tries to move to the next page with too many check boxes ticked, that you can make a short message appear in the sense of "you ticked too many boxes"?
3)again for the radiobuttons: Is there a possibility to decide the position of the answers of a single item beyond the /orientation command?
also some questions for the /include command:
4) if two or more experiments have elements with the same name, it gets an error. I recall seeing a tutorial, where you can handle this collision directly in the the file where you include the other experiments instead of renaming every single element in one of the experiments, but I can't find it anymore. Anyone might know what I'm talking about and have a link?
5) I want to include another experiment, which is located in a different folder. By choosing its path, it can include the experiment with no problems, however, if this experiment contains pictures (which are also located in that folder), I get an error message, saying it can't find the pictures. Is there a way around this or do I just have to include the pictures in the same folder where I have the File that runs the /include command?
thanks again in advance for answers
> 1) Is it possible to implement a button on each page of a block, which, when pressed, quits the block, so participants could end the test
> (if they finished before time runs out) > regardless on which page they are?
You'd have to include a <radiobuttons> question or the like on the respective <surveypage>s (or define some additional response in any <trial>s) that -- if answered in some fashion -- terminates the rest of the <block> via a /stop command.
<surveypage pg1>
/ caption = "Page 1 of 3"
/ questions = [1=a; 2=quitq]
</surveypage>
<surveypage pg2>
/ caption = "Page 2 of 3"
/ questions = [1=b; 2=quitq]
</surveypage>
<surveypage pg3>
/ caption = "Page 3 of 2"
/ questions = [1=c; 2=quitq]
</surveypage>
<radiobuttons quitq>
/ caption = ("Would you like to quit?"
/ options = ("Yes", "No")
/ defaultresponse = "No"
</radiobuttons>
<dropdown a>
/ options = ("A1", "A2")
</dropdown>
<dropdown b>
/ options = ("B1", "B2")
</dropdown>
<dropdown c>
/ options = ("C1", "C2")
</dropdown>
<block myblock>
/ stop = [radiobuttons.quitq.response == "Yes"]
/ trials = [1=pg1; 2=pg2; 3=pg3]
</block>
> 2) I implemented the answer limitation similar to your posted example,as I worked for this task with check boxes as well (-->counting the numbers of ticked boxes,
> if it's too high, you can't proceed). Now is there a possibility that, when someone tries to move to the next page with too many check boxes ticked,
> that you can make a short message appear in the sense of "you ticked too many boxes"?
Yes. From the page with your checkboxes /branch to another page that displays the "too many boxes" message if too many boxes have been ticked. From there, /branch back to the original page.
> 3)again for the radiobuttons: Is there a possibility to decide the position of the answers of a single item beyond the /orientation command?
I'm not quite sure what you mean here, but you can define the position of any given <radiobuttons> element via its /position attribute.
> 4) if two or more experiments have elements with the same name, it gets an error. I recall seeing a tutorial, where you can handle
> this collision directly in the the file where you include the other experiments instead of renaming every single element
> in one of the experiments, but I can't find it anymore. Anyone might know what I'm talking about and have a link?
I believe you are mistaken here. This is not possible with <include> -- all <include> does is effectively paste the contents of an external file into the main file; i.e. it is the same as having everything in a single file. As such, there may not be any name collisions, regardless of whether you use <include> or not.
If you have several self-contained experiments, however, you may execute those in the desired order one after another via <batch>, which is entirely different from <include>.
> 5) I want to include another experiment, which is located in a different folder. By choosing its path, it can include the experiment with no problems,
> however, if this experiment contains pictures (which are also located in that folder), I get an error message, saying it can't find the pictures.
> Is there a way around this or do I just have to include the pictures in the same folder where I have the File that runs the /include command?
You can specify the path to the image files in the respective script's <item> elements.