Sunday, September 5, 2021

Unlock a new feature in the range question

The PsyToolkit range question is quite popular. Here is an example:

l: mood_happy
t: range
q: How happy are you right now
- {left=Not at all happy,right=Extremely happy,start=50,min=0,max=100,no_number}

The question gives you a slider and in the current version (3.3.2), it looks like this.

 

So far so good.

 

But when you have more than one slider on one page, it might not be well aligned, as you can see below. First the code, and then what it looks like:

l: mood
t: range
q: Click the position on the scale that best represents how you feel right now.
- {left=Not at all happy,right=Extremely happy,start=50,min=0,max=100,no_number}
- {left=Excited,right=Not excited,start=50,min=0,max=100,no_number}

 

 

 

In the upcoming version this will be fixed. The range question will look different. To try this out in the current version, you can use the o: test option, which looks like this (first the code, then what it looks like):

l: mood
t: range
o: test
q: Click the position on the scale that best represents how you feel right now.
- {left=Not at all happy,right=Extremely happy,start=50,min=0,max=100,no_number}
- {left=Excited,right=Not excited,start=50,min=0,max=100,no_number}


 

And that is it. In the new version, you do not need the o: test line anymore. It is just to enable an upcoming feature in the current version. A number of people had asked me about the problem of the non-aligned sliders, which made me realize that this is an important issue to fix now.

If you find this useful, do not forget that you can support PsyToolkit with a donation via https://www.psytoolkit.org/donate.html

 

No comments:

Post a Comment

Unlock a new feature in the range question

The PsyToolkit range question is quite popular. Here is an example: l: mood_happy t: range q: How happy are you right now - {left=Not at al...