PennController for IBEX › Forums › Support › Implementation of ecalling patterns
- This topic has 2 replies, 2 voices, and was last updated 4 years, 5 months ago by
iris98.
-
AuthorPosts
-
May 4, 2021 at 10:17 am #6924
iris98ParticipantHi,
I’m currently programming an experiment where participants have to remember a certain pattern while judging a sentence. The participants first see the pattern in a 3×3 matrix, after which they judge the sentence, and then they are asked to recall the previously studied pattern by clicking the same pattern in an empty 3×3 grid. I have made these grids in html, with large checkboxes. In the to be remembered pattern, the checks are disabled (so participants can’t change anything).
I’d like to give participants feedback when they recall a pattern incorrectly. I have been trying to figure this out in the html script (by making the correct checkboxes in the empty grid ‘required’ or ‘obligatory’) but this has worked out so far. ‘Required’ doesn’t get picked up by html.checkboxWarning. ‘Obligatory’ also doesn’t work because ‘class’ in my html script is already filled with a reference to the style of the large checkbox (input.largerCheckbox).
I was wondering if there is a way to fix this or do this differently in pcIBEX.
Thank you so much in advance!
Best,
IrisMay 4, 2021 at 12:56 pm #6925
JeremyKeymasterHi Iris,
As you found out, Ibex does not detect any “required” field, but looks up an “obligatory” class instead. HTML elements can have more than one class, you just need to separate the classes with space characters, e.g
<input type="checkbox" class="largerCheckbox obligatory">Alternatively, you could also do it exclusively using PennController commands: https://farm.pcibex.net/r/yqrvtr/ (don’t mind the “already part of Selector” errors—it’s a non-fatal bug I need to fix in PennController)
The code isn’t super concise but it’s still readable and works pretty wellLet me know if you have questions
Jeremy
-
This reply was modified 4 years, 5 months ago by
Jeremy.
May 5, 2021 at 7:36 am #6927
iris98ParticipantHi Jeremy,
Thank you so much for the help, I really appreciate it!
I will have to keep using the html solution because I present the patterns in a fixed order. This works perfectly, since all the other code was already in place.Thanks again and all the best,
Iris -
This reply was modified 4 years, 5 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.