PennController for IBEX › Forums › Support › Matching Participants on Race/Gender? › Reply To: Matching Participants on Race/Gender?
June 12, 2020 at 3:01 pm
#5635
Participant
Hi Jeremy,
Thanks for getting back to me. Although that fixed the issue with the URL, I am still getting a 400 Bad Request when the new window opens. The log shows all commands up to newButton().wait() running. I see the race and sex selected in the URL. This makes me think perhaps something is off within these lines of code:
if (GetURLParameter("id") && GetURLParameter("race") && GetURLParameter("sex")){
race = decodeURI(GetURLParameter("race"))
sex = decodeURI(GetURLParameter("sex"))
Sequence("instructions1", randomize("practicesequence"), "Break1", randomize("experimentalsequence1"), "Break2", randomize("experimentalsequence2"), "Break3", randomize("experimentalsequence3"), "send", "Finish")
// Instructions
Template(
GetTable("instructionsimage.csv")
.filter("race", race)
.filter("sex", sex)
,
variable => newTrial("instructions1",
defaultText
.center()
.print()
Thank you very much for your help + patience!
Callie