Reply To: access participants' browser info

PennController for IBEX Forums Support access participants' browser info Reply To: access participants' browser info

#6953
Jeremy
Keymaster

Hi,

Yes, you can do something like this for example:

Sequence("block", "intro", randomize("experiment"))

if (navigator.vendor.match(/apple/i))
    newTrial( "block" ,
        newText("<p>We're sorry, but this experiment is not compatible with your browser.</p>").print()
        ,
        newText("<p>We encourage you to revisit this experiment \
                    using a desktop or laptop version of Chrome or Firefox if possible.</p>").print()
        ,
        newText("<p>Thank you for your understanding.</p>").print()
        ,
        newButton().wait()
    )

Note that filtering participants after recruiting them is against some recruitment platforms’ policy, such as Prolific’s (last time I checked)

Jeremy