Combining Multiple Controls Demo Experiment Run Experiment

Combining Multiple Controls

Jaap Murre

This demo illustrates how you can combine several controls on one page in such a way that they are still processed automatically by the NeuroTask libraries.


This is Script 6.2 in Chapter 6 of the free online Leanpub book. More details are given there.

If you are a registered user and signed in, you can here copy this script and its stimuli to your own account, where you can edit it and change it in any way you want.

It is absolutely free to register (no credit card info asked!). You can then instantly copy this experiment with one click and edit it, change its accompanying texts, its landing page, stimuli, etc. Invite your colleagues, friends, or students to check out your experiment. There is no limit on how many people can do your experiment, even with a free account.

The catch? There is no catch! Just keep in mind that with a free account, you cannot collect data. For teaching that is usually not a problem. For research, prepaid data collection (unlimited subjects) starts as low as €10.00 for a 10-day period.

var months = ["January", "February", "March", "April", "May", "June",
              "July", "August", "September", "October", "November", "December"];

main.setfontsize(80);
startform();   
    main.addblock('center',25,100,20).text("What is your date of birth?",120)

    main.addblock(15,'center',20,20)
            .select("Year",range(1910,2000),"year");
    main.addblock(35,'center',30,20)
            .select("Month",months,"month");
    main.addblock(65,'center',15,20)
            .select("Day",range(1,32),"day");
            
    main.addblock('center','bottom',30,20)
            .button("OK","inputbutton","click","inputbutton")
            .await('click'); // button: prefix to click prevents arrow keys generating clicks
endform();
   
main.addblock('center','top',100,20)
    .text("You were born on {month} {day}, {year}");

await(2000);
This experiment has no files of this type
This experiment has no files of this type
This experiment has no files of this type
This experiment has no YouTube links
This experiment has no files of this type