PennController for IBEX › Forums › Troubleshooting › Reply To: Troubleshooting
October 5, 2022 at 6:06 pm
#8670
ediachek
Participant
Hi Jeremy,
I am ready to run my experiment (yay) and I want to be able to get participants’ Prolific ID from the URL, so I followed the instructions from here: https://doc.pcibex.net/how-to-guides/using-prolific/. I copied and pasted your code (see below) but it gives me an error:
//Validation
newTrial("final" ,
newText("<p>Thank you for your participation!</p>")
.center()
.print()
,
newText("<p><a href='https://app.prolific.co/submissions/complete?cc=CGL9GN20'+ GetURLParameter("id")+"' target='_blank'>Click here to confirm your participation on Prolific.</a></p> <p>This is a necessary step in order for you to receive participation credit!</p>")
.center()
.print()
,
newButton("void")
.wait()
)
Do you have any suggestions on how to fix this? Here is also the link to the experiment: https://farm.pcibex.net/r/LAfkkh/