Hey friendly community,
I’ve tried implementing an online experiment with the PsychoPy 2023.2.2 builder. It contains a form, which unfortunately is mangled as soon as I try it in the local browser:
I’ve read through the old posts on this topic (Form Component and Button work in PsychoPy but not on Pavlovia ), but didn’t really get a useful answer. The example (Custom web component for online experiments: Forms, surveys, questionnaires, and other web-based content ) is using html files which seem unnecessary as I’m fine with the basic form layout.
I can only attach two links in each post, so here’s the minimal experiment to reproduce the issue:
demographics.csv (739 Bytes)
psychoJS_form.psyexp (11.2 KB)
Nowadays I would recommend embedding a Pavlovia Survey instead of using a form component online.
Thanks for the advice, I would still like to use it independently.
After a lot of trial and error, it seems that this is an issue with PsychoJS that was brought up at some point. I’ve installed PsychoPy 2021.1.4 and it still is working there:
Is there an option to bring this bug to the attention of the developers?
I would like to help getting this fixed, as I really like having an independent platform for those experiments.
I wonder if this is the same issue as the recent textbox bug. Do you have any editable twxtboxes?
See if you can use the same fix.
Think I have a fix for this now! Will put it in for the next release. As a temporary solution, you just need to add the following code as soon as possible after creating the Textbox (either Begin Experiment with the Code component below the Textbox in the Routine order, or Begin Routine):
myTextbox.container.disable()
It was working in our test scripts because, once the Textbox has been drawn once, the Aperture is correctly enabled/disabled so that it only applies to the Textbox. But our tests…
Thanks for the link.
I was able to find a different solution in the meantime, the bug was introduced in a commit:
opened 03:18PM - 11 Oct 23 UTC
Hey friendly community,
I’ve tried implementing an online experiment with the… PsychoPy 2023.2.2 builder. It contains a form, which unfortunately is mangled as soon as I try it in the local browser:
PsychoPy:
![PsychoPy](https://github.com/psychopy/psychojs/assets/141765018/e367367c-0695-41b5-a255-b7311932a1fa)
PsychoJS:
![PsychoJS](https://github.com/psychopy/psychojs/assets/141765018/c3164b93-390f-4214-8b60-03fa5c66aa4f)
Interestingly enough, this issue is not there in older versions of PsychoPy, here's the PsychoJS version for 2022.1.4:
![Capture2](https://github.com/psychopy/psychojs/assets/141765018/7f80c0d6-7a52-4f5e-af74-65a04960a920)
Here’s the minimal experiment to reproduce the issue:
[form_issue.zip](https://github.com/psychopy/psychojs/files/12871654/form_issue.zip)
I would be in to help debugging/fixing this if there is a possibility to do this.
1 Like