[Bug]: Mistake in documentation for FormComponent #6452
Labels
🐞 bug
Issue describes a bug (crash or error) or undefined behavior.
📓 docs & demos
Issue with documentation (typos, outdated, etc.) or demos.
▶️ good first issue
PsychoPy Version
2024.1.3
What OS are your PsychoPy running on?
Windows 11
Bug Description
The documentation for
Form
says that it acceptstype = 'free-text'
. However, it should be 'free text' (at least per v2024.1.3).'free-text' causes an error. This should be easy to fix, as I'm just suggesting the documentation is modified? I imagine that you may want to push users toward your other survey options, but it would still be nice. You could also add that "{'radio', 'description', 'heading'}" are other possible options not listed in the documentation
Expected Behaviour
For the documentation, it should just say 'free text'.
Steps to Reproduce
It's the documentation
Additional context
I also encountered some other issues related to the error logging in
visual.form._checktypes
. I'm not sure if it's worth addressing this because it would be more tedious, but I describe it below.The error message,
msg
, is supposed to tell users what the correcttypes
are. However, the error logging itself has an error becausemsg
isn't being defined. This is the error:And here is the error-generating error-logging code:
The text was updated successfully, but these errors were encountered: