Shuffling selector within Template

PennController for IBEX Forums Support Shuffling selector within Template

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10886
    Dari
    Participant

    Hi,

    I have a question concerning shuffling text elements contained in a selector.

    In my experiment, participants are asked to select one out of six options, which are randomly distributed across six positions on the screen by clicking on them and then to proceed with a button click. The text elements are added to a canvas, then to a selector, and then shuffled using selector.shuffle(). In principle, this works: https://farm.pcibex.net/r/QoougJ/

    However, shuffling does not work when I use a Template, which I need in the real experiment to extract the stimuli from a csv table (the texts always appear in the same order): https://farm.pcibex.net/r/giVzvg/

    When looking at the logs, it looks like the six text elements are printed in the randomized positions after executing the selector.shuffle() command in the working version (without a Template), but not in the other one. Do you have any suggestions on how to solve this issue?

    Thank you very much in advance!

    #10930
    Jeremy
    Keymaster

    Hi,

    It looks like the file PennController.js somehow got deleted from the projects that you shared in the meantime. However, if I upload the latest version of PennController under development then the shuffling issue seems to be addressed: the texts do not appear in the same order from one trial to the next

    Jeremy

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.