Form component: how to have commas in the response items?

If this template helps then use it. If not then just delete and start from scratch.

OS (e.g. Win10): Win10
PsychoPy version (e.g. 1.84.x): 3.2.4
Standard Standalone? (y/n) If not then what?: y
What are you trying to achieve?: Have commas in the responses items in a form component

I am using the form component in builder.
My condition file is made of several sentences with commas. However, it is a separator, so it just splits my sentences.
I tried to insert several different characters in the condition file so that psychopy understands these commas are not list separators. But I can’t make it understand.

How should I do that?

Maybe I can be clearer.
In the ‘options’ column of my condition file, I have something like : Hey, how are you, Hello.
-> the first comma is an actual comma, the second one is a list separator
But the first one acts as a separator as well and it shouldn’t.

Surround your sentences with quotes: "Hey, how are you", Hello

Hello @Michael , I tried this already and it won’t work :frowning:

Hi @Oceane, apologies but Form uses commas as a separator, to divide up your options at the different tick locations. Your best option for now is to reconstruct your sentences so commas are not used. E.g., "Hey! How are you?"

These are standardized questions, I cannot change anything except the way I display them. I will add text components or something then.
Thanks a lot for your help!!

An alternative is to just use a Slider component for each question. Make your PANAS questionnaire as the conditions file, and loop through each question presenting a single item on each screen. The Slider does not have the same issue with labels.

I found a pseudo-solution: I used a special character that looks like a comma (sort of), then it is not processed as a separator.

1 Like